求一个sql语句!
我想查出country列没有 '省 '和 '市 '两个字符的记录,但是下面自己写的语句并不好使,请高手指教了!
select * from dv_address where country like '%[^省]%大学% ' and country like '%[^市]%大学% '
[解决办法]
select * from dv_address where country NOT like '%省% ' and country NOT like '%市% '