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.
| Author |
Topic |
|
govindts
Starting Member
33 Posts |
Posted - 2008-02-28 : 11:12:36
|
| Dear all, I wanted to write a select statement which display the letter A in the first line and B will be in the second line. The below second statement achieve my goal. But the first one is not displaying as i expected. How can i write the select statement to display the letters(A&B) in different line. Please let me know.SELECT ('A' + CHAR (13) + 'B')PRINT ( 'A' + CHAR (13) + 'B') |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-02-28 : 11:17:52
|
| You dont need braces after SELECT |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-02-28 : 11:19:54
|
| Change results mode to Text.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-02-28 : 11:20:37
|
If you use GRID mode, you can't. Switch to TEXT mode to query results. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-02-28 : 11:20:59
|
Damn! I must be old... E 12°55'05.25"N 56°04'39.16" |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-02-28 : 11:23:28
|
hahaha Peter, sometimes luck favors me! Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
Abu-Dina
Posting Yak Master
206 Posts |
Posted - 2008-02-28 : 11:36:46
|
quote: Originally posted by Peso Damn! I must be old... E 12°55'05.25"N 56°04'39.16"
select distinct (Peso Answers) from SQLTeamAnswers = 5000 |
 |
|
|
|
|
|