Kaydet (Commit) 9cd0036a authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Use native SQLite types

üst f36dddaf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment