Why does pymysql update the database with a total prompt of 1054?

    sql = "UPDATE arms SET gem2="%s" WHERE id = ("%d")" % ("",new_id)
    (1054, "Unknown column "gem2" in "field list"")
    
    
    sql = "UPDATE arms SET gem2="" WHERE id = ("%d")" % new_id
    (1054, "Unknown column "gem2" in "field list"")
    gem1.

Apr.05,2021

try using the following sql?

sql = "UPDATE arms SET gem2='%s' WHERE id = ('%d')" % (pymysql.escape_string(''),int(new_id))

sql should be fine, especially if gem1 will not report an error. Check to see if there are spaces or newline characters before and after gem2.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac9c4-47ea5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac9c4-47ea5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?