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
 line break in select Statement

Author  Topic 

Adianjali
Starting Member

7 Posts

Posted - 2012-01-02 : 06:21:02
i have two column in table

select Col1 + ' ' + Col2 from test

It gives output as
Arun Kumar

But i want output as
Arun
Kumar

I am trying from last 105hrs but still didnt find result

arjun.s

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-01-02 : 06:59:02

select Col1 + char(13) + char(10) + Col2 from test

be sure to have output to text and not in a grid.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -