Created
May 24, 2019 17:14
-
-
Save nt92/e3f48d3532ee9c1496a65e66e44dd1dd to your computer and use it in GitHub Desktop.
Create a SQLite database with Python
This file contains hidden or 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
| import sqlite3 | |
| conn = sqlite3.connect('entries.db') | |
| cursor = conn.cursor() | |
| cursor.execute("""CREATE TABLE entries (date text, entry text)""") | |
| conn.commit() | |
| conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment