错误信息发来看看啊你这个sql语句有问题 
select * from table1 limit 20
应该是 select * from table1 limit 0,20
应该有个起始点0,然后是记录数20