How to use LISTAGG to return rows prefixed with quotes

前端 未结 1 694
野趣味
野趣味 2021-01-24 01:52

I am trying to return rows which would be useful for setting the in condition in a query. Here is my query

SELECT LISTAGG(PRODUCTID, \',\') WITHIN GROUP (ORDER          


        
相关标签:
1条回答
  • 2021-01-24 02:11
    SELECT LISTAGG(''''||PRODUCTID||'''', ',') WITHIN GROUP (ORDER BY RowSequence) 
    FROM DWRE_ITEM_V
    
    0 讨论(0)
提交回复
热议问题