今天用到在网上没有找到合适的思路,于是自己动手写了一个,作为记录. dpa = [] dpb = [] dpc = [] for i in range(21): dpa.append(0) for i in range(21): dpb.append(dpa) for i in range(21): dpc.append(dpb)…
SELECT min (maxrank) as minofmaxrank FROM (SELECT max(rank) as maxrank FROM tbl_core_staff WHERE st_ymd<=now() AND ed_ymd>now() AND staff_cd in ('','','','','','','','','','','','','','','','','','','') GROUP BY staff_cd ) t1 这里是先从tbl_core_staff 表查询…