Solution to wm_concat function error in Oracle

Source: Internet
Author: User

In Oracle, The wm_concat function reports an error. solution: the original SQL statement select t. mail_no, wm_concat (t. notice_no) as notice_no_all from ardba. arbino t group by t. the mail_no error message solves SQL select. mail_no, wm_concat (. notice_no) | max (. str) as notice_no_all from (select k. mail_no, k. notice_no, case when k. all_sum> 4000 then '... 'else null end as str from (select t. mail_no, t. notice_no, sum (vsize (t. notice_no | ',') over (partition by t. mail_no) as all_sum, sum (vsize (t. notice_no | ',') over (partition by t. mail_no order by t. notice_no) as up_sum from ardba. arbino t) kwhere (k. up_sum <= 3998 and k. all_sum & gt; 4000) or k. all_sum <= 4001) agroup by. mail_no final

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.