From ea84b8105afc66328fdf80bb8f2410fa09b964f5 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 17 Jun 2007 18:49:42 +0000 Subject: SF #1738670, make example in doc work --- Doc/lib/libsqlite3.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/lib/libsqlite3.tex b/Doc/lib/libsqlite3.tex index 46e9800..b8dd68e 100644 --- a/Doc/lib/libsqlite3.tex +++ b/Doc/lib/libsqlite3.tex @@ -42,6 +42,12 @@ c.execute('''create table stocks # Insert a row of data c.execute("""insert into stocks values ('2006-01-05','BUY','RHAT',100,35.14)""") + +# Save (commit) the changes +conn.commit() + +# We can also close the cursor if we are done with it +c.close() \end{verbatim} Usually your SQL operations will need to use values from Python -- cgit v0.12