For more information about mysql output

Source: Internet
Author: User
For more information about mysql output, see table sn & nbsp; name & nbsp; & nb mysql output question. could you please refer
Table

Sn name sub time

1 Wang 1 math 2012-1-1 1-1

2 Wang 2 Chinese language 2012-1-1

5 Wang 3 Sports

4 Wang 4 science 2012-1-2 2

Output

2012-1-1

Chinese

Mathematics

2012-1-2

Sports

Science

Note: The content corresponding to the time output should be put together.

------ Solution --------------------
Select time, group_concat (sub) from tableName group by time

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.