Table of Contents 1. Start Here ...............................................................................................................................1 1.1 For New iOS Developers .............................................................
本文实例讲述了Python2.7中SQLite3基本操作方法。分享给大家供大家参考,具体如下:
1、基本操作
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import sqlite3
def mykey(x):
return x[3]
conn=sqlite3.connect("D:\\demo\\my_db.db")
sql = "CREATE TABLE IF NOT EXISTS mytb ( a char , b int , c re