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页码 Read More
posted @ 2013-04-10 14:27 一抹、思乡泪 Views(38197) Comments(0) Diggs(7) Edit