comparison Doc/lib/sqlite3/executescript.py @ 38069:cf19a123a5d9 legacy-trunk

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.
author Gerhard Häring <gh@ghaering.de>
date Mon, 01 May 2006 15:14:48 +0000
parents
children 204ec383b445
comparison
equal deleted inserted replaced
38068:ca6c91531a96 38069:cf19a123a5d9
1 import sqlite3
2
3 con = sqlite3.connect(":memory:")
4 cur = con.cursor()
5 cur.executescript("""
6 create table person(
7 firstname,
8 lastname,
9 age
10 );
11
12 create table book(
13 title,
14 author,
15 published
16 );
17
18 insert into book(title, author, published)
19 values (
20 'Dirk Gently''s Holistic Detective Agency
21 'Douglas Adams',
22 1987
23 );
24 """)