请注意:此代码我本人验证过的,确保正确的。
别忘了在我回复你的每一个楼层送上献花。
- SELECT "原辅料" AS 工作表,类别,品名,来源,NULL AS 供应商,月份,NULL AS 规格,批号,[合格/不合格],化验员1,化验员2,化验员3,化验员4,化验员5,化验员6,化验员7 FROM [原辅料$] UNION ALL SELECT "药材" AS 工作表,类别,品名,来源,供应商,月份,NULL AS 规格,批号,[合格/不合格],化验员1,化验员2,化验员3,化验员4,化验员5,化验员6,化验员7 FROM [药材$] UNION ALL SELECT "中间产品" AS 工作表,类别,品名,来源,NULL AS 供应商,月份,NULL AS 规格,批号,[合格/不合格],化验员1,化验员2,化验员3,化验员4,化验员5,化验员6,化验员7 FROM [中间产品$] UNION ALL SELECT "成品" AS 工作表,类别,品名,来源,NULL AS 供应商,月份,NULL AS 规格,批号,[合格/不合格],化验员1,化验员2,化验员3,化验员4,化验员5,化验员6,化验员7 FROM [成品$] UNION ALL SELECT "包材" AS 工作表,类别,品名,来源,NULL AS 供应商,月份,规格,批号,NULL AS [合格/不合格],化验员1,化验员2,化验员3,化验员4,化验员5,化验员6,化验员7 FROM [包材$]
复制代码 |