SELECT `column` from `table` where locate(‘keyword‘, `condition`)>0; // LOCATE(substr,str,pos);locate 多一个起始位置的参数 SELECT `column` from `table` where position(‘keyword‘ IN `condition`); SELECT `column` from `table` where instr(`condition`, ‘keyword‘)>0; SELECT `column` from `table` where find_in_set(‘keyword‘, `condition`); SELECT * FROM test WHERE pnum REGEXP ‘(3|9)‘;// 正则查找 或
时间: 2024-10-10 23:42:39