mysql 查询一条记录的下一条和上一条记录
摘要:
如果ID是主键或者有索引,可以直接查找:方法一:查询上一条记录的SQL语句(如果有其他的查询条件记得加上other_conditions以免出现不必要的错误):select * from table_a where id = (select id from table_a where id {$i... 阅读全文
posted @ 2014-08-22 15:08 Red_Fox 阅读(1897) 评论(0) 推荐(0)
浙公网安备 33010602011771号