I like the next table
The name col1 col2...
A 1 2...
W e b...
When the select all,
I want to get this kind of resultsThe name col
A 1
A 2
A...
W b
B e
B...
Can you tell me how to query?
CodePudding user response:
Select the name, col1 from tab_01
Union all
Select the name, col2 from tab_01
Union all
Select the name, col3 from tab_01
So you can
CodePudding user response: