摘要:
昨日内容回顾 文件的读写模式 r with open(r'a.txt','r'encoding='utf8') as f: f.read() #只能读,不能写,文件不存在会报错 w with open(r'b.txt','w',enconding='utf8') as f: f.write() # 阅读全文
摘要:
昨日内容回顾 多表查询 1.子查询 将一条sql语句的查询结构作为另一条sql语句的条件 2.连表操作 inner join 内连接 select * from emp inner join dep on emp.dep_id=dep.id; left join 左连接 right join 右连接 阅读全文
摘要:
上周内容回顾 库的增删改查 show databases; show create databese db; create database db1; alter datebase charset='gbk' drop database db1; 表的增删改查 # 操作表之前一定要明确库 use d 阅读全文