标题:分页中的SQL问题
取消只看楼主
ch_zh_80
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2006-3-9
 问题点数:0 回复次数:1 
分页中的SQL问题
select * from aaa where id not in (select id from aaa order by id limit 0, 5)

请问在MySQL中怎么写嵌套查询呀?
我上面的那个查询为什么不对呀?
如果把上面的查询改为下面的就可以
select * from aaa where id not in ('222','333')

这是为什么呀?
2006-05-16 16:55
ch_zh_80
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2006-3-9
得分:0 

这个论坛太差了,连个响应也没有

2006-05-18 12:41



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-64745-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.132770 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved