bind-variables

MySQL parameterized queries

MySQL parameterized queries Question: I am having a hard time using the MySQLdb module to insert information into my database. I need to insert 6 variables into the table. cursor.execute (“”” INSERT INTO Songs (SongName, SongArtist, SongAlbum, SongGenre, SongLength, SongLocation) VALUES (var1, var2, var3, var4, var5, var6) “””) Can someone help me with the syntax …

Total answers: 7