2008-03-31から1日間の記事一覧

DBAPI勉強中(2)

色んなデータ型を試してみます。 import psycopg2 con = psycopg2.connect("dbname=testdb") cur = con.cursor() cur.execute("drop table if exists t") cur.execute(""" create table t( i integer, r real, n numeric, v varchar(10), t text, d date, ti…