Created
May 25, 2019 01:40
-
-
Save elseagle/514b1770805e003c2b1c7da2d63ccaa9 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
import sqlite3 | |
connection = sqlite3.connect('data.db') | |
cursor = connection.cursor() | |
create_table = "CREATE TABLE IF NOT EXISTS items (name text PRIMARY KEY, price real)" | |
cursor.execute(create_table) | |
connection.commit() | |
connection.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment