多进程与多线程效率对比 # # """ # # 计算密集型 # """ # from threading import Thread # from multiprocessing import Process # import time # # a = 1 # def task(): # global a # for i in range(10000000): # a +=1 # a * 10 / 2 - 3 # # s = time.time(…
视图操作: 1.左连接查询 select * from person left join dept on person.dept_id = dept.did 2. 右连接 3. 内连接 inner join 4. UNION ALL 全连接 ======================= 一 . 多表操作 select * from person,dept 二 .多表联合操作 select * from person,dept where person.dept_id =dept.di…