直接学习:https://edu.csdn.net/course/play/24756/280730
MySQL数据库-数据库更新操作
语法:update [表名] 更新操作[条件]

sql  =" update  article set title ='钢铁是怎么炼成的'where  id = 4"
cursor.execute(sql)
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐