|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 7:51 AM
Points: 1,085,
Visits: 1,166
|
|
kapil_kk (10/25/2012) One question, I am confused on this...
select ID, name name from person
select ID ID, name name from person
Both these statements dont give any error message and run successfully... wht is it so?
Hi kapil,
1st statement :- it's showing that you are giving the alias column name to column 2(name). I can also right this like:- select ID, name as [name] from person or select ID, name as [Column_2] from person
2nd Statement :-same thing happen in 2nd statement.
Check below statement. have fun
select '--------------------' as TT select 233 as '____________'
Thanks Vinay
Keep Learning - Keep Growing !!! http://growwithsql.blogspot.in
Thanks Vinay Kumar
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 3:07 PM
Points: 606,
Visits: 136
|
|
Good Exercise for Basic of SQL.
Nice One
Thanks
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 2:28 PM
Points: 515,
Visits: 119
|
|
Easy question.
It shows once again, the more options/possibilities, the more errors can be made.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:16 PM
Points: 1,061,
Visits: 1,151
|
|
Thanks Danny
|
|
|
|