How to write a query that does something similar to MySQL's GROUP_CONCAT in Oracle?

前端 未结 3 1484
长发绾君心
长发绾君心 2020-12-12 03:03

When I run the following SQL query in my Oracle database:

SELECT p.pkt_nazwa, 
       u.us_nazwa 
FROM   punkty p, 
       kategorie_uslug ku, 
       usluga         


        
3条回答
  •  庸人自扰
    2020-12-12 03:29

    Here's an article explaining some approaches to what you're trying to do in Oracle:

    http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php

    Note that if you're running 11g Release 2 then LISTAGG is the way to go.

提交回复
热议问题