SQLite3 + Python2.5 でオンメモリデータベース

| | Comments (0) | TrackBacks (0)


import sqlite3
# -*- coding: utf-8 -*-

con = sqlite3.connect(":memory:")
con.execute("CREATE TABLE TEST(num integer)")
con.execute("INSERT INTO TEST(num) VALUES(200)")
for row in con.execute("SELECT * FROM TEST"):
   print row[0]

0 TrackBacks

Listed below are links to blogs that reference this entry: SQLite3 + Python2.5 でオンメモリデータベース.

TrackBack URL for this entry: http://lab.hde.co.jp/blog/mt-tb.cgi/146

Leave a comment

About this Entry

This page contains a single entry by Takeshi SAKURAI published on August 12, 2009 11:27 AM.

SQLite + Python でオンメモリデータベース was the previous entry in this blog.

Slackware Linux 13.0 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.