sql server - T-SQL - Aliasing using "=" versus "as" -
is there particular reason (performance or otherwise) use ahead of = when aliasing column?
my personal preference (for readability) use this:
select alias1 = somecolumn alias2 = anothercolumn tables etc...
instead of this:
select somecolumn alias1 anothercolumn alias2 tables etc...
am missing out on reason why shouldn't doing this? other people's preferences when comes formatting columns?
‘=’ isn't valid ansi sql, you'll have difficulty should wish run application on different dbms.
(it's when ansi form used optional ‘as’ omitted find results difficult read, personally.)
Comments
Post a Comment