Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Output as ROw

Author  Topic 

aoriju
Posting Yak Master

156 Posts

Posted - 2011-04-11 : 04:46:07
I have a Query

SELECT ('31234'),('123123')


Now the output is 2 columns..

I want to show it as 2 row

matty
Posting Yak Master

161 Posts

Posted - 2011-04-11 : 04:50:47
SELECT '31234'
UNION ALL
SELECT '123123'
Go to Top of Page
   

- Advertisement -