SQL - query columns into rows

Column-to-row function: LISTAGG()

This is the most basic usage:

LISTAGG(XXX,XXX) WITHIN GROUP( ORDER BY XXX)

 

listagg(city,','

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326846585&siteId=291194637