From 8ec7f656134b1230ab23003a94ba3266d7064122 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 15 Aug 2007 14:28:01 +0000 Subject: Move the 2.6 reST doc tree in place. --- Doc/includes/sqlite3/executescript.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Doc/includes/sqlite3/executescript.py (limited to 'Doc/includes/sqlite3/executescript.py') diff --git a/Doc/includes/sqlite3/executescript.py b/Doc/includes/sqlite3/executescript.py new file mode 100644 index 0000000000..7e5358178d --- /dev/null +++ b/Doc/includes/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