sqlite分页查询

select * from users order by id limit 10 offset 0;//offset代表从第几条记录“之后“开始查询,limit表明查询多少条结果

运用:
sqlitecmd.CommandText = string.Format("select * from GuestInfo order by GuestId limit {0} offset {0}*{1}", size, index-1);//size:每页显示条数,index页码

 

posted @ 2013-04-10 14:27  一抹、思乡泪  Views(38197)  Comments(0Edit  收藏  举报