我想在我的MySQL数据库中插入整数188和90,但以下代码不起作用:
import MySQLdb
conn = MySQLdb.connect(host= "localhost",
user="root",
passwd="newpassword",
db="engy1")
x = conn.cursor()
x.execute("SELECT * FROM anooog1")
x.execute (" INSERT INTO anooog1 VALUES ('%s','%s') ", (188,90))
row = x.fetchall()
Run Code Online (Sandbox Code Playgroud)
为什么不起作用?