mysql中not in怎么使用 想知道mysql中的not in怎么使用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table1 where id not in (1,2,3,4,5) MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html 当您的问题得到解答后请及时结贴.http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html 具体是什么问题?select * from tt where id not in(1,2,3) select * from tableA where id not in (select id from tableB) 就是说从tt表中查询数据,并且id字段的值不等于1,2,3中的任何一个值 select * from tt where id not in(1,2,3)和select * from tt where id <>1 and id <>2 and id <>3的意思一样 select * from tb where id not in(1,3,5,7); 如何修改mysql主键(id)的值为自增 保证数据库安全。。 求一sql语句 MYSQL编码问题 group by替换产生很多的问题 请教一个mysql 的sql 语句写法 请教:pgsql能否实现分布式查询? mysql中怎么按合计排序 如何知道insert语句已经成功插入记录 根据表的两个字段分组之后,取出每个分组中最新一条,MySQL实现 Java 插入 mysql部分中文乱码——请高手赐教 mysql 创建后没mysql 数据库。。
MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
select * from tt where id not in(1,2,3)
where id not in (select id from tableB)
就是说从tt表中查询数据,并且id字段的值不等于1,2,3中的任何一个值
select * from tt where id not in(1,2,3)
和
select * from tt where id <>1 and id <>2 and id <>3
的意思一样