|
噢。用联合查询也可以,但是Access不是这么玩的~~~这毕竟跟Excel是有区别的。
- SELECT 产品编号 AS A产品编号, 价格 As A价格,"" as B产品编号, "" as B价格,"" as C产品编号, "" as C价格 FROM 表1 where 品牌="A"
- union all SELECT "" AS A产品编号, "" As A价格,产品编号 as B产品编号, 价格 as B价格,"" as C产品编号, "" as C价格 FROM 表1 where 品牌="B"
- UNION ALL SELECT "" AS A产品编号, "" As A价格,"" as B产品编号, "" as B价格,产品编号 as C产品编号, 价格 as C价格 FROM 表1 where 品牌="C";
复制代码 当产品越来越多的时候,存在两个问题:
1、SQL查询语句过于复杂(字符数有限制滴)以致无法运行。
2、列标题超过255,无法在查询中显示。
算了,还是看附件吧。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|