您可以使用:
SELECt LISTAGG('''' || student_name || '''',',') WITHIN GROUP (ORDER BY student_name)FROM students;
或使用
ENQUOTE_LITERAL功能:
SELECt LISTAGG(DBMS_ASSERT.ENQUOTE_LITERAL(student_name),',') WITHIN GROUP (ORDER BY student_name) AS rFROM students;
DBFiddle演示
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)