手机
当前位置:查字典教程网 >脚本专栏 >python >python实现在sqlite动态创建表的方法
python实现在sqlite动态创建表的方法
摘要:本文实例讲述了python实现在sqlite动态创建表的方法。分享给大家供大家参考。具体实现方法如下:importsqlite3asdbco...

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

import sqlite3 as db conn = db.connect('mytest.db') cursor = conn.cursor() cursor.execute("create table person(name text,age text,address text)") print("table created")

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

【python实现在sqlite动态创建表的方法】相关文章:

python中文乱码的解决方法

python实现百度关键词排名查询

python三元运算符实现方法

python实现ftp客户端示例分享

c++生成dll使用python调用dll的方法

python实现巡检系统(solaris)示例

python实现哈希表

python3访问sina首页中文的处理方法

python 不关闭控制台的实现方法

Python实现扫描指定目录下的子目录及文件的方法

精品推荐
分类导航