When I issue an INSERT statement in Python, the error no such column is displayed and it becomes "??".
When I try to display SQL on the console screen using print ...
** INSERT INTO license (license_nm) values (Basic Information Technology Engineer Examination) **
Apparently there was no single quote, so there was an error ...
#Insert data sql = "INSERT INTO license (license_nm) values " sql += "(" sql += in_shikaku sql += ")"
#Insert data sql = "INSERT INTO license (license_nm) values " sql += "(" sql += "'" + in_shikaku + "'" sql += ")"
It was a rudimentary mistake ...
I don't want to enclose it in "'" one by one, so I have to do something about the DB issuance process ...
Recommended Posts