开发者

python实现在sqlite动态创建表的方法

本文实例讲述www.devze.com了python实现在sqlite动态创建表的方法。分享给大家供大家参www.devze.com考。具体实现方法编程客栈如下:

import sqlite3 as db
conn =JoIlpYdi db.connect('mytest.db')
cursor = conn.cursor()
cursor.execute("create table person(name text,age text,address text)")www.devze.com
print("ta开发者_MongoDBble created")

希望本文所述对大家的Python程序设计有所帮助。

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新数据库

数据库排行榜