Home > Database > Mysql Tutorial > 把一列多行数据合并成一条数据

把一列多行数据合并成一条数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:44:25
Original
1377 people have browsed it

declare @returnItem nvarchar(max) set @returnItem='' select @returnItem=@returnItem+','+[name] from 【TableName】 print @returnItem

declare @returnItem nvarchar(max)
set @returnItem=''
select @returnItem=@returnItem+','+[name] from 【TableName】

print @returnItem

,网站空间,香港服务器,网站空间
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why can't the list be rendered?
From 1970-01-01 08:00:00
0
0
0
Teacher, the style has not changed?
From 1970-01-01 08:00:00
0
0
0
Why does it still jump after returning false?
From 1970-01-01 08:00:00
0
0
0
Why is my cell array offside?
From 1970-01-01 08:00:00
0
0
0
Optimize table indexes in MySQL
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template