在MSSQL中模拟MySql group_concat

时间:2014-02-04 18:26:58

标签: mysql sql group-concat sql-server-group-concat

我想在MSSQL中运行此MySql查询。

是否有可能通过修改此查询来实现这一目标?

Select 

sku, 
(select group_concat(sku separator ",") 
from catalog_product_entity as _e 
where _e.entity_id in (select product_id from catalog_product_super_link as 
superlink where e.entity_id = superlink.parent_id))

from catalog_product_entity  as e
where type_id = "configurable"

group by sku

0 个答案:

没有答案