Oracle 10 Gb obtains the result set for merging values in column B based on the same values in column.

Source: Internet
Author: User

Oracle 10g obtains the result set of merging values in column B based on the same value in column a. oracle 10g obtains the same value according to Column, obtains the result set that combines values in column B. (Make a and B form a parent-child relationship) www.2cto.com -- source table table_t a B Guangdong Guangzhou Guangdong Shenzhen Guangxi Nanning Guangxi Beihai -- SQL select a, WMSYS. WM_CONCAT (B) B from table_t group by a -- result table a B Guangdong Guangzhou, Shenzhen Guangxi Nanning, Beihai --------- Note: it is for reference only and can be expanded freely, hope to help people in need.

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.