- select 客户简称,片区,渠道,存货名称,数量 AS 报订数量,0 as 发货数量, 0 as 发货码洋 from ['3$'] union all
- select 客户简称,片区,渠道,存货名称,数量 AS 报订数量,0 as 发货数量, 0 as 发货码洋 from ['4$'] union all
- select 客户简称,片区,渠道,存货名称,0 AS 报订数量,数量 AS 发货数量,码洋 AS 发货码洋 from ['1$'] union all
- select 客户简称,片区,渠道,存货名称,0 AS 报订数量,数量 AS 发货数量,码洋 AS 发货码洋 from ['2$']
- 简化:
- select 客户简称,片区,渠道,存货名称,数量 AS 报订数量,0 as 发货数量,0 as 发货码洋 from ['3$'] union all
- select 客户简称,片区,渠道,存货名称,数量,0,0 from ['4$'] union all
- select 客户简称,片区,渠道,存货名称,0,数量,码洋 from ['1$'] union all
- select 客户简称,片区,渠道,存货名称,0,数量,码洋 from ['2$']
复制代码
[ 本帖最后由 wuxiang_123 于 2009-12-26 13:05 编辑 ] |