请教一个类似于gogole查询的sql语句
用户输入的条件为'a b+c e+f'
希望得到的sql语句为
select * from table where (field like '%a%' or (filed like '%b' and filed like '%c' ) or (filed like '%e' and filed like '%f' ))
多谢
[解决办法]
select * from table where field LIKE '%[ab][ce]f%'
[解决办法]
select * from table where field LIKE '%[ab][ce]f%