回答

收藏

在Oracle中使用LISTAGG进行字符串格式化。转义单引号`'`

技术问答 技术问答 82 人阅读 | 0 人回复 | 2023-09-12

如何在Oracle中格式化listagg产生输出的输出(单引号中的每个字段)为‘student1','student2','student3'。
5 N5 `6 W% p; L: R我已经相关的listagg但是找不到太多的文档和其他问题。
2 l. L1 H! ~' h% L) zSQL查询可连接Oracle多行列值
6 c8 P! ]: r% y# w& d3 A5 _# N0 ^SELECT LISTAGG(student_name,, WITHIN GROUP (ORDER BY student_name)from students谢谢
: r" q4 ~9 ?, [  u# S! G                                                               
" d) @0 W( U% L9 a0 }; N    解决方案:
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则