Unknown column '' in 'field list'
422 ワード
Unknown column’’in‘field list’解決方法
文字列の受信方法を取得するには
整形数字int(id)を取得するには
その他の理由
スペースが1つ増えたhttps://blog.csdn.net/gnail_oug/article/details/53606608
:
cursor.execute("update book set name='%s' where id=%d" % (name, int(id)))
:
cursor.execute("update book set name=%s where id=%d" % (name, int(id)))
文字列の受信方法を取得するには
'%s'
整形数字int(id)を取得するには
その他の理由
スペースが1つ増えたhttps://blog.csdn.net/gnail_oug/article/details/53606608