/*===================*/ SELECT GZF002,GZF006,GZF010 INTO #A1 FROM SFCGZF WHERE GZF010 LIKE '%21:%' SELECT COUNT(*)*5 晚班补贴,GZF006 FROM #A1 WHERE SUBSTRING(GZF002,6,2)=SUBSTRING('${W5}',6,2)/*==获取月份==*/ GROUP BY GZF006 DROP TABLE #A1 /*===================*/ 获取起始日期里的月份 |