-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitializeTables.py
29 lines (15 loc) · 1.26 KB
/
initializeTables.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from initializeDB import *
c.execute("INSERT INTO inventoryTable (price, item, description, quantity) VALUES ('12.35', 'Billy Bobs Guide to Programming', 'learn to program from the best', '10');")
conn.commit()
c.execute("INSERT INTO inventoryTable(price, item, description, quantity) VALUES(15.75, 'A Biography: Bullys Story', 'learn about our favorite bulldog', 8)")
conn.commit()
c.execute("INSERT INTO inventoryTable(price, item, description, quantity) VALUES(24.10, 'Learn to Program with Pictures!', 'learn to program from pictures!', 2)")
conn.commit()
c.execute("INSERT INTO inventoryTable(price, item, description, quantity) VALUES(7.00, 'Lil Johns WHAT! A love story', 'better love story than Twilight', 5)")
conn.commit()
c.execute("INSERT INTO inventoryTable(price, item, description, quantity) VALUES(12.35, 'Encyclopedia: Assorted Encyclopedias', 'the only book you will ever need', 12)")
conn.commit()
c.execute("INSERT INTO inventoryTable(price, item, description, quantity) VALUES(6.30, 'Day of the Dying Alive', 'a new take on horror', 4)")
conn.commit()
c.execute("INSERT INTO usersTable(username, password, firstName, lastName, shippingAddress) VALUES('username123', 'password123', 'Username', 'Userton', 'User Lane Road, Starkville, MS 39759')")
conn.commit()