mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
Use native SQLite types
This commit is contained in:
parent
2b46434109
commit
3d1839f541
1 changed files with 2 additions and 2 deletions
|
@ -2152,8 +2152,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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue