Skip to content

Instantly share code, notes, and snippets.

@NielsMinssen
Created August 11, 2022 13:28
Embed
What would you like to do?
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