| |

VerySource

 Forgot password?
 Register
Search
View: 644|Reply: 2

Urgent !! Online etc., different from the past (with a certain challenge coefficient), how to use sql to merge rows into

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-11 18:40:01
| Show all posts |Read mode
Column name 1, column name 2
    A, 1
    A, 2
    A, 3
    .
    .
    .
    A, x

Then what statement method can be achieved
 Column name 1, column name 2
    A, 1; 2; 3 ... x

I hope the heroes will help out soon
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-9 21:15:01
| Show all posts
Don't understand your statement
Or there are only 2 columns, what does 1;2;3...x mean?
Is it 1;2;3...x column? Or does "Column Name 2" have 1;2;3...x?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-8-10 23:15:01
| Show all posts
It is like this: there are two columns, the number of rows is uncertain, the final result is to find the row with A, and then combine the column names by ";" to form a row
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list