Skip to content

Instantly share code, notes, and snippets.

@xianxingg
Created March 3, 2016 10:37
Show Gist options
  • Select an option

  • Save xianxingg/c058c5cc72a6f00e574b to your computer and use it in GitHub Desktop.

Select an option

Save xianxingg/c058c5cc72a6f00e574b to your computer and use it in GitHub Desktop.
From http://stackoverflow.com/questions/15677446/how-to-tweak-listagg-to-support-more-than-4000-character-in-select-query listagg不用做escape(date), 但是xmlagg需要转码, 否则报错: datatype, describeCol
dbms_xmlgen.convert(xmlagg(xmlelement(E, name||',')).extract('//text()').getclobval(),1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment