Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created August 15, 2020 05:35
Embed
What would you like to do?
# Create cursor to execute SQL commands
cur = conn.cursor()
# Execute SQL commands
for command in commands:
# Create tables
cur.execute(command)
# Close communication with server
conn.commit()
cur.close()
conn.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment