MySQL将多列数据合并为一列

MySQL将多列数据合并为一列,mysql,multiple-columns,Mysql,Multiple Columns,我想将多列数据合并到一列中 例如: 这是我的表格结构: [Color], [Size] , [Other] White , 23"x22", something Black , 22"x44", test 这就是我想要实现的目标: [Other_Attributes] color=White,size=23"x22",other=something color=Black,size=22"x44",other=test 我如何使用MYSQL实现这一点类似这样的东西会有所帮助 select

我想将多列数据合并到一列中

例如: 这是我的表格结构:

[Color], [Size] , [Other]
White  , 23"x22", something
Black  , 22"x44", test
这就是我想要实现的目标:

[Other_Attributes]
color=White,size=23"x22",other=something
color=Black,size=22"x44",other=test

我如何使用MYSQL实现这一点类似这样的东西会有所帮助

select CONCAT('color=',Color,',size=', Size, ',other=', Other) concat_col 
From Tbl