随笔分类 - sqlite
python使用sqlite
摘要:摘自python帮助文档一、基本用法import sqlite3conn = sqlite3.connect('example.db')#conn = sqlite3.connect(':memory:')c = conn.cursor()c.execute('''CREATE TABLE stocks (date text, trans text, symbol text, qty real, price real)''')#NULL,INTEGER,REAL,TEXT,BLOBc.execute("I
阅读全文
浙公网安备 33010602011771号