SQL Server 中可以用 + 连接字段值。
解决方案 »
- [正则]两问
- 一个最简单的线程问题
- 急!关于datagridview中DataGridViewTextBoxColumn问题
- DevExpress.XtraGrid.Views.Grid.GridView 删除行
- 求ado.net 2.0编写较为规范的c#源码(c/s)
- 很急的一个问题目,请帮忙!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- WebClient的问题
- 基础问题 大家帮忙
- 谁有条形码的国家标准,这个网址无法下载了
- 最有发展前途的IT职业是?同时也要有“钱”途!
- DataGrid中显示的超链接数据信息,怎样在链接目标页中得到相应数据。。。。。
- DataView 的过滤问题!!
t1 varchar(10),
t2 varchar(10),
t3 varchar(10),
)
insert into #t(t1,t2,t3) values ('a','b','c')
insert into #t(t1,t2,t3) values ('d','e','f')
insert into #t(t1,t2,t3) values ('g','h','i')
select top 1 a.t1+b.t1+c.t1,a.t2+b.t2+c.t2, a.t3+b.t3+c.t3 from #t a,#t b,#t c where a.t1<>c.t1 and a.t1<>c.t1 and a.t1<>b.t1 and a.t1 = (select top 1 t1 from #t) and c.t1 = (select top 1 t1 from #t order by t1 desc)