1 Star 0 Fork 0

Python程序设计/192223zpy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sql.py 552 Bytes
一键复制 编辑 原始数据 按行查看 历史
192223张鹏宇 提交于 2020-04-29 23:38 +08:00 . sql
import sqlite3
conn=sqlite3.connect('pyu')
cusor=conn.cursor()
cusor.execute('create table if not exists pyu( name varchar (20) ,number int (10))')
cusor.execute('insert into pyu( name,number)values ("a",1111)')
cusor.execute('insert into pyu( name,number)values ("b",2222)')
cusor.execute('insert into pyu( name,number)values ("c",3333)')
cusor.execute('select * from pyu')
print(cusor.fetchmany(3))
cusor.execute('update pyu set number = 4444 where number =3333')
cusor.execute('select * from pyu')
print(cusor.fetchmany(3))
conn.close()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/python_programming/zpy192223.git
[email protected]:python_programming/zpy192223.git
python_programming
zpy192223
192223zpy
master

搜索帮助