Commit f2eb4cba authored by Neal Norwitz's avatar Neal Norwitz

SF #1738670, make example in doc work

parent d8f77deb
...@@ -42,6 +42,12 @@ c.execute('''create table stocks ...@@ -42,6 +42,12 @@ c.execute('''create table stocks
# Insert a row of data # Insert a row of data
c.execute("""insert into stocks c.execute("""insert into stocks
values ('2006-01-05','BUY','RHAT',100,35.14)""") 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} \end{verbatim}
Usually your SQL operations will need to use values from Python Usually your SQL operations will need to use values from Python
......
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