我的mySQL是5.0版本的可是select * from rights where id not in ( select id from rights limit 80) limit 10;这句还是说不支持这是为什么呢?
首先 你的版本可能太低了不支持这个子查询:
当然我的也不支持 所以出错
[quote]This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'[/quote]
如果你的 意思是分页 或者查询第 80-90 条数据 可以换个写法就OK
mysql 很简单的!
select * from rights where row_id limit 80,10;