Last active
August 4, 2020 04:45
-
-
Save ahmedazizkhelifi/cecf02a937e285ebc2fd0e5958a9c49f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L = [(1,'Aziz','1980-10-20'),(2,'Khelifi','1990-05-07')] | |
query = """INSERT INTO Customer | |
VALUES(?,?,?)""" | |
c.executemany(query, L) | |
#executemany is the equivalent of: | |
for iterable in L: | |
c.execute(query, iterable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment