|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
SQL:
(select '铰链' as 类别,编号,null as 单价,null as 总价,普通铰链 as 数量,'普通铰链' as 型号 from [sheet1$a11:g14] where 普通铰链<>null) union all
(select '铰链' as 类别,编号,null as 单价,null as 总价,快装铰链 as 数量,'快装铰链' as 型号 from [sheet1$a11:g14] where 快装铰链<>null) union all
(select '铰链' as 类别,编号,null as 单价,null as 总价,半盖铰链 as 数量,'半盖铰链' as 型号 from [sheet1$a11:g14] where 半盖铰链<>null) union all
(select '铰链' as 类别,编号,null as 单价,null as 总价,半盖铰链 as 数量,'半盖铰链' as 型号 from [sheet1$a11:g14] where 半盖铰链<>null) union all
(select '拉篮' as 类别,编号,null as 单价,null as 总价,MA03080 as 数量,'MA03080' as 型号 from [sheet1$a11:g14] where MA03080<>null) union all
(select '拉篮' as 类别,编号,null as 单价,null as 总价,MA04080 as 数量,'MA04080' as 型号 from [sheet1$a11:g14] where MA04080<>null) union all
(select '拉篮' as 类别,编号,null as 单价,null as 总价,MA09130 as 数量,'MA09130' as 型号 from [sheet1$a11:g14] where MA09130<>null)
[ 本帖最后由 fdd 于 2009-6-8 13:33 编辑 ] |
|