模糊查询同一个字段的多个关键词,如果这么写会比较麻烦
select * from test where city like "%210212%" or city like "%210203%"
可以换成正则
select * from testwhere city regexp'210212|210283|210203|.......';
其中引号里面是正则表达式,可以根据自己需求编写
模糊查询同一个字段的多个关键词,如果这么写会比较麻烦
select * from test where city like "%210212%" or city like "%210203%"
可以换成正则
select * from testwhere city regexp'210212|210283|210203|.......';
其中引号里面是正则表达式,可以根据自己需求编写