首页 > 解决方案 > 对于 xml - postgresql 中的类似功能

问题描述

'for xml' 命令在 pgadmin 上不起作用。有任何想法吗?我正在尝试从另一个stackoverflow问题中获取以下查询:SQL For xml path on int columns?

select @contactIds = stuff((select ','+cast(id as varchar(8000)) from contacts for xml path('') ), 1, 1, '');

标签: postgresqlpgadminpgadmin-4for-xml

解决方案


推荐阅读