select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,切割完成,0 as 磨边完成数,0 as 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [切割$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 磨边完成数,0 as 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [磨边$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [斜边$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 0 as 斜边完成数, 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [丝印$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 0 as 斜边完成数, 0 as 丝印完成数, 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [钢化$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 0 as 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 中空完成数,0 as 夹胶完成数,0 as 包装完成数 from [中空$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 0 as 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,夹胶完成数,0 as 包装完成数 from [夹胶$] union all
select 订单编号,序号,产品名称,形状,规格,加工要求,出货日期,0 as 切割完成, 0 as 磨边完成数, 0 as 斜边完成数, 0 as 丝印完成数, 0 as 钢化完成数, 0 as 中空完成数,0 as 夹胶完成数,包装完成数 from [包装$]
可参照上述样式构造外部数据查询;不过楼主的数据源格式及名称需要重新做一下统一规范才好!~~~ |