python查询mysql数据

>>>cur.execute("select * from 表名")

>>>lines=cur.fetchall()

>>>for line in lines:

           print(line)

>>>cur.scroll(1)         游标上移一个位置

posted @ 2018-10-28 23:52  香蕉都驼背  阅读(423)  评论(0编辑  收藏  举报