-
-
Save NielsMinssen/8c2483f74a4e468603205bbd151ab424 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
cur = conn.cursor() # creation du curseur, basé sur la variable conn qui contient la connexion à la bdd | |
# executer une requête qui créer la table | |
cur.execute(""" | |
CREATE TABLE Employee | |
( | |
ID INT PRIMARY KEY NOT NULL, | |
NAME TEXT NOT NULL, | |
EMAIL TEXT NOT NULL | |
) | |
""") | |
# valider les modifications | |
conn.commit() | |
print("Table créée avec succès") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment