请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
zjp1300160(uid:260347)
职业资格认证:尚未取得认证
  • 我的里面没有的,我一个一个打开看的
  • SELECT b.maiorgname AS maiorgname,COUNT(*) AS number,t.numbersumFROM se_ft_basic_3000 AS b INNER JOIN se_dt_sbzl_dl AS d INNER JOIN se_dt_xzqh_cmn AS c INNER JOIN (SELECT b.maiorgname AS maiorgname,COUNT(*) AS numbersumFROM se_ft_basic_3000 AS b INNER JOIN se_dt_sbzl_dl AS d INNER JOIN se_dt_xzqh_cmn AS c ON b.equupscode=d.equupscode AND b.dm_ds=c.DM_DS AND b.dm_qx=c.DM_QX WHERE IF("设备所在地州市"='',1,b.dm_ds=(SELECT DM_DS FROM se_dt_xzqh_cmn WHERE MC="设备所在地州市")) AND IF("设备所在区县"='',1,b.dm_qx=(SELECT DM_QX FROM se_dt_xzqh_cmn WHERE MC="设备所在区县"))  AND IF("首次检验日期开始"='',1,b.insdate>"首次检验日期开始" AND b.insdate<"首次检验日期结束") AND IF("设备检验类别描述"='',1,b.testsort=(SELECT testsort FROM se_dt_testsort WHERE comments="设备检验类别描述")) AND IF("所属设备大类名称"='',1,LEFT(b.equupscode,1)=LEFT((SELECT equupscode FROM se_dt_sbzl_dl WHERE equipname="所属设备大类名称"),1))GROUP BY b.useorgname) AS tON b.equupscode=d.equupscode AND b.dm_ds=c.DM_DS AND b.dm_qx=c.DM_QX AND b.maiorgname=t.maiorgnameWHERE IF("设备所在地州市"='',1,b.dm_ds=(SELECT DM_DS FROM se_dt_xzqh_cmn WHERE MC="设备所在地州市")) AND IF("设备所在区县"='',1,b.dm_qx=(SELECT DM_QX FROM se_dt_xzqh_cmn WHERE MC="设备所在区县"))  AND IF("首次检验日期开始"='',1,b.insdate>"首次检验日期开始" AND b.insdate<"首次检验日期结束") AND IF("设备检验类别描述"='',1,b.testsort=(SELECT testsort FROM se_dt_testsort WHERE comments="设备检验类别描述")) AND IF("所属设备大类名称"='',1,LEFT(b.equupscode,1)=LEFT((SELECT equupscode FROM se_dt_sbzl_dl WHERE equipname="所属设备大类名称"),1)) AND insresult="不合格" GROUP BY b.useorgname;
  • delimiter //                            drop procedure if exists age_limit;     create procedure age_limit()             begin    declare i int;    declare x int;     set i = 0;    set x = 0;    while i <= 20 do                           set i = i + 5;      SELECT COUNT(*) INTO x     FROM se_ft_basic AS b INNER JOIN se_dt_sbzl_dl AS d INNER JOIN se_dt_xzqh_cmn AS c     ON b.equupscode=d.equupscode AND b.dm_ds=c.DM_DS AND b.dm_qx=c.DM_QX     WHERE IF("设备所在地州市"='',1,b.dm_ds=(SELECT DM_DS FROM se_dt_xzqh_cmn WHERE MC="设备所在地州市"))     AND IF("设备所在区县"='',1,b.dm_qx=(SELECT DM_QX FROM se_dt_xzqh_cmn WHERE MC="设备所在区县"))     #AND IF("注册登记日期开始"='',1,b.regdate>'注册登记日期开始' AND b.regdate<'注册登记日期结束')    AND IF("所属设备大类名称"='',1,b.equupscode=(SELECT equupscode FROM se_dt_sbzl_dl WHERE equipname="所属设备大类名称"))     AND TIMESTAMPDIFF(YEAR,b.regdate,DATE_FORMAT(NOW(), '%Y-%m-%d'))<=i    GROUP BY b.equupscode;        insert into age_limit (number) values (x);    end while;                            select * from age_limit;               end//                                      UPDATE age_limit SET number=0;call age_limit();

22

2

22

10

个人成就
内容被浏览11,461
加入社区5年105天
返回顶部