考虑表 STUDENTS:
---------------------
|Sr.No| Name |
---------------------
| 1 | Jon |
---------------------
| 2 | Rob |
---------------------
| 3 | Bran |
---------------------
使用下面的查询我们得到:
select listagg(Name, ',') within group (order by Name) from STUDENTS
由此我们将得到:
Jon,Rob,Bran
我们如何得到类似的东西
"Jon","Rob","Bran"