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() ...@@ -36,8 +36,8 @@ c = conn.cursor()
# Create table # Create table
c.execute('''create table stocks c.execute('''create table stocks
(date timestamp, trans varchar, symbol varchar, (date text, trans text, symbol text,
qty decimal, price decimal)''') qty real, price real)''')
# Insert a row of data # Insert a row of data
c.execute("""insert into stocks 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