python mysql
3的pymysql 2的MySQLDB
python
coon=pymysql.connect()
cursor = coon.cursor() cursor = pymysql.cursors.DictCursor
cursor.execute(sql)
cursor.fetchone() fetchmany(2) fetchall
cursor.scroll(1, mode="relative")
coon.commit()
cursor.close()
coon.close()
事务
![](https://images.cnblogs.com/cnblogs_com/zhouguanglu/1345279/o_zhifubaoshouqian.png)
支付宝
您的资助是我最大的动力!
金额随意,欢迎来赏!
微信
![](https://images.cnblogs.com/cnblogs_com/zhouguanglu/1345279/o_weixinshouqian.png)
![](https://images.cnblogs.com/cnblogs_com/zhouguanglu/1345279/o_jiahaoyou.jpg)