⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.py

📁 isql for acess,sqlite , mysql etc
💻 PY
字号:
import sqlitec=sqlite.connect(r"trac.db",autocommit=1)cur=c.cursor()cur.execute("select tbl_name from sqlite_master where type='table' order by tbl_name")tables = []for row in cur.fetchall():        tables.append(row.tbl_name)print tablesr=cur.execute("drop table ma")r=cur.execute("create table ma(id integer primary key,s char[20])")r=cur.execute("insert into ma(id,s) values(1,'ma')")r=cur.execute("select * from ma")print cur.fetchall()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -