view Doc/includes/sqlite3/executescript.py @ 72990:8564d2b240b6

default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and semicolons. Patch by Ben Darnell and Petri Lehtinen.
author Senthil Kumaran <senthil@uthcode.com>
date Thu, 20 Oct 2011 01:06:59 +0800
parents 9e1529bf0442
children
line wrap: on
line source

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
    );
    """)