Python insert 数据库

SQL = "INSERT into ...}

cursor.execute(SQL)

记得
cursor.close()
conn.commit()
conn.close()

猜你喜欢

转载自blog.csdn.net/Hodors/article/details/114872976