会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
LinVan
博客园
首页
新随笔
联系
订阅
管理
2018年9月8日
使用动态SQL语句实现简单的行列转置(动态产生列)
摘要: 原始数据如下图所示:(商品的销售明细) date=业务日期;Item=商品名称;saleqty=销售数量; -- 建立测试数据(表) create table test (Date varchar(10), item char(10),saleqty int) insert test values(
阅读全文
posted @ 2018-09-08 09:25 LinVan
阅读(3065)
评论(0)
推荐(0)
编辑
公告