查询数据库中like和 not in 一起使用

select * from Main where maistatus like '%1%' and maistatus not in (select maistatus from Main where maistatus like '%10%' or  maistatus like '%11%');

posted on 2013-03-15 14:13  rslblogjava  阅读(829)  评论(0编辑  收藏  举报