mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
commit
17f1be6368
3 changed files with 8 additions and 10 deletions
|
|
@ -17,5 +17,4 @@ con.executemany("insert into person(firstname, lastname) values (?, ?)", persons
|
|||
for row in con.execute("select firstname, lastname from person"):
|
||||
print(row)
|
||||
|
||||
# Using a dummy WHERE clause to not let SQLite take the shortcut table deletes.
|
||||
print("I just deleted", con.execute("delete from person where 1=1").rowcount, "rows")
|
||||
print("I just deleted", con.execute("delete from person").rowcount, "rows")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue