Python MySQL - SELECTs work but not DELETEs?

前端 未结 4 2083
难免孤独
难免孤独 2021-01-17 20:35

I\'m new to Python and Python\'s MySQL adapter. I\'m not sure if I\'m missing something obvious here:

db = MySQLdb.connect(# db details omitted)
cursor = se         


        
4条回答
  •  我在风中等你
    2021-01-17 21:30

    The problem might be that you are not committing the changes. it can be done by conn.commit()

    read more on this here

提交回复
热议问题