From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- .../cmd/python/Doc/lib/sqlite3/executescript.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sys/src/cmd/python/Doc/lib/sqlite3/executescript.py (limited to 'sys/src/cmd/python/Doc/lib/sqlite3/executescript.py') diff --git a/sys/src/cmd/python/Doc/lib/sqlite3/executescript.py b/sys/src/cmd/python/Doc/lib/sqlite3/executescript.py new file mode 100644 index 000000000..7e5358178 --- /dev/null +++ b/sys/src/cmd/python/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.3