摘要:
1.视图 # 创建视图select * from emp inner join dep on emp.dep_id = dep.id;create view emp2dep as select emp.*,dep.name as dep_name from emp inner join dep 阅读全文
摘要:
1.子查询in # 1、inselect * from emp where age=18 or age=38 or age=28;select * from emp where age in (18,38,28);# 子查询的思路select * from emp where dep_id in( 阅读全文
摘要:
1.约束条件 # not null defaultcreate table t1(x int not null);insert into t1 values(); --失败,不为空但是没有默认值create table t2(x int not null default 111);insert i 阅读全文
摘要:
1.验证GIL锁 from threading import Threadfrom multiprocessing import Processdef task(): while True: passif __name__ == '__main__': for i in range(6): 阅读全文