Use native SQLite types

This commit is contained in:
Andrew M. Kuchling 2006-09-08 14:03:01 +00:00
parent 3d1839f541
commit 6d75567238
1 changed files with 2 additions and 2 deletions

View File

@ -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