the 'for xml' command does not work on pgadmin. Any ideas? I'm trying to get the following query to work from another stackoverflow question: SQL For xml path on int columns?
select @contactIds = stuff((select ','+cast(id as varchar(8000)) from contacts for xml path('') ), 1, 1, '');