Use native SQLite types
This commit is contained in:
parent
f36dddafc1
commit
9cd0036a2b
|
@ -36,8 +36,8 @@ c = conn.cursor()
|
|||
|
||||
# Create table
|
||||
c.execute('''create table stocks
|
||||
(date timestamp, trans varchar, symbol varchar,
|
||||
qty decimal, price decimal)''')
|
||||
(date text, trans text, symbol text,
|
||||
qty real, price real)''')
|
||||
|
||||
# Insert a row of data
|
||||
c.execute("""insert into stocks
|
||||
|
|
Loading…
Reference in New Issue