Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use FOR XML Path in Azure Synapse

Can you please help me will FOR XML PATH works in Azure Synapse. If not what will be the alternative.

Thanks

like image 368
user15488631 Avatar asked Oct 19 '25 03:10

user15488631


1 Answers

In case you you're looking to use FOR XML to prepare e.g. column names for a dynamic pivot query, then the string_agg function is what you are looking for.

string_agg documentation

like image 51
JayWayze Avatar answered Oct 22 '25 08:10

JayWayze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!