Questions tagged «bind-variables»

7
MySQL参数化查询
我很难使用MySQLdb模块将信息插入数据库中。我需要在表中插入6个变量。 cursor.execute (""" INSERT INTO Songs (SongName, SongArtist, SongAlbum, SongGenre, SongLength, SongLocation) VALUES (var1, var2, var3, var4, var5, var6) """) 有人可以帮我这里的语法吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.