From 82560ebb8d2472be5a916a6013deff89781b452d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20H=C3=A4ring?= Date: Mon, 1 May 2006 15:14:48 +0000 Subject: Further integration of the documentation for the sqlite3 module. There's still quite some content to move over from the pysqlite manual, but it's a start now. --- Doc/lib/sqlite3/executescript.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Doc/lib/sqlite3/executescript.py (limited to 'Doc/lib/sqlite3/executescript.py') diff --git a/Doc/lib/sqlite3/executescript.py b/Doc/lib/sqlite3/executescript.py new file mode 100644 index 0000000000..2c04066354 --- /dev/null +++ b/Doc/lib/sqlite3/executescript.py @@ -0,0 +1,24 @@ +import sqlite3 + +con = sqlite3.connect(":memory:") +cur = con.cursor() +cur.executescript(""" + create table person( + firstname, + lastname, + age + ); + + create table book( + title, + author, + published + ); + + insert into book(title, author, published) + values ( + 'Dirk Gently''s Holistic Detective Agency + 'Douglas Adams', + 1987 + ); + """) -- cgit v1.2.1