select * from table_name limit begin_num,10;
select top 10 * from table1 T1 where T1.ID not in (select top {0} T2.ID from table2 T2)注:{0}为参数,参数值 = 已显示总数
select * from thetable limit %(pagesize)d offset %(pagesize*pagenumber)d;
用for循环好了