Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created August 15, 2020 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/7bff74b294db9a7ad014dbe73f874ab2 to your computer and use it in GitHub Desktop.
Save aniruddha27/7bff74b294db9a7ad014dbe73f874ab2 to your computer and use it in GitHub Desktop.
# 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