SQL字符串合并
发表于:2024-09-21 作者:千家信息网编辑
千家信息网最后更新 2024年09月21日,create table #tb(id int, value varchar(10),cname varchar(20))insert into #tb values(1, 'aa','aaaa')i
千家信息网最后更新 2024年09月21日SQL字符串合并
create table #tb(id int, value varchar(10),cname varchar(20))
insert into #tb values(1, 'aa','aaaa')
insert into #tb values(1, 'bb','eeee')
insert into #tb values(1, 'aa','tttt')
insert into #tb values(2, 'aaa','gggg')
insert into #tb values(2, 'bbb',null)
insert into #tb values(2, 'ccc','hhhh')
insert into #tb values(1, 'cc','llll')
go
----
---去重select id, [value] = stuff((select distinct ',' + [value] from #tb t where id = #tb.id for xml path('')) , 1 , 1 , ''),max(isnull(cname,''))from #tbgroup by id---不去重select id, [value] = stuff((select ',' + [value] from #tb t where id = #tb.id for xml path('')) , 1 , 1 , ''),max(isnull(cname,''))from #tbgroup by id
drop table #tb
字符
字符串
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
移动互联网络技术是什么
战地1新手怎么选择服务器
戴尔服务器密码
服务器风扇16200插在电脑上
网管第1课计算机与网络安全
软件开发table定义书
mac mini软件开发
手机网络安全怎么解决
北京有哪些ipfs服务器
数据库毕设答辩
javabean和数据库
这软件开发的成熟不成熟
宝塔服务器有啥区别
综合网络安全平台
网络技术发展普及
德国大众软件开发
乡镇青少年网络安全教育活动
编目数据库的作用
小区开放对交通的影响数据库
sql数据库fk是什么意思
腾联网络技术有限公司电话
秋日森林服务器有用吗
南瑞网络安全培训班
软件开发i项目沟通
wr703n 打印机服务器
微娱平台网络技术外包
互联网科技研究学院
交互式服务器
串口服务器读不上数据
网络安全是一场