查询出来的一列,如何分为三列显示?
如
col1
a1
a2
a3
b1
b2
b3
c1
c2
c3显示为
col1 col2 col3
a1 b1 c1
a2 b2 c2
a3 b3 c3
如
col1
a1
a2
a3
b1
b2
b3
c1
c2
c3显示为
col1 col2 col3
a1 b1 c1
a2 b2 c2
a3 b3 c3
解决方案 »
- 散分!!顺便吐槽一下~~~
- 关于RichEdit中如何提取部分带有格式的文本内容?
- 现在DELPHI怎么这么难找工作了
- 我用osql.exe文件持行sql文件,但是不想让用户看到这些sql文件,我能否把这些sql文件放入dll文件内(能否持行),或者我把sql的脚本放入
- 提个简单的问题,动态数组初始化,马上给分
- 求助:调用vc编译的dll时遇到的参数传递问题
- 怎么用 Access实现共享方式的读取和修改数据库
- 如何从DBChart中提取数据?????????????
- 怎样安装TwebTabsheet.pas 组件
- 怎么样在CANVAS上面用TEXTOUT写上字以后,然后在下次再写字的时候把原来写的擦除。
- 請問:那位有文件Copy表單。。。
- 如何改变word中的字体
union all
select col1 as col2 from 表 where substring(col1,1,1)=b
union all
select col1 as col3 from 表 where substring(col1,1,1)=c
(case when substring(coll,1,1) ='a' then coll1 end),
(case when substring(coll,1,1) ='b' then coll2 end),
(case when substring(coll,1,1) ='c' then coll3 end),
from coll