# Collection of code snippets by Arne Vajhøj 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import sqlite3

con = sqlite3.connect('test.db')
c = con.cursor()
c.execute('INSERT INTO multi(msg) VALUES(?)', ('Hi from Python on Windows',))
c.execute('SELECT id,msg FROM multi')
for row in c.fetchall():
    print('%d %s' % (row[0], row[1]))
con.commit()
con.close()
