当前位置: 代码迷 >> Java Web开发 >> 分页中的SQL问题
  详细解决方案

分页中的SQL问题

热度:166   发布时间:2006-05-16 16:55:00.0
分页中的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')

这是为什么呀?

----------------解决方案--------------------------------------------------------

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


----------------解决方案--------------------------------------------------------
这个是SQL语句的语法 ,自己找资料看看.
----------------解决方案--------------------------------------------------------
  相关解决方案