view Doc/includes/sqlite3/executescript.py @ 74588:dfd05348331c

Sort functions in the doc of the time module Move wallclock() at the end.
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 24 Jan 2012 01:12:54 +0100
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
    );
    """)