From 3139a22f38b32a758505ab8348dbbf1af263f598 Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Mon, 2 Dec 2013 18:20:58 -0500 Subject: [PATCH] Update create_db.py --- sqlite3/create_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3/create_db.py b/sqlite3/create_db.py index 24f9f4e..7099675 100644 --- a/sqlite3/create_db.py +++ b/sqlite3/create_db.py @@ -9,7 +9,7 @@ c = conn.cursor() # create table c.execute('''CREATE TABLE zinc_db1 - (zinc_id TEXT, purchasable TEXT, non_rot_bonds INT)''') + (zinc_id PRIMARY KEY, purchasable TEXT, non_rot_bonds INT)''') # Insert one row of data c.execute("INSERT INTO zinc_db1 VALUES ('ZINC00895032','YES', 4)")