Transact-SQL shorthand join syntax?

前端 未结 5 538
轻奢々
轻奢々 2020-12-06 10:24

I have noticed a few times when working on legacy code, that you can do left and right outer joins in sql by using the

=*

as kind of short

5条回答
  •  忘掉有多难
    2020-12-06 10:53

    My personal opinion (after 6+ years in SQL & TSQL) is that this legacy style only makes it harder for other developers not versed in legacy syntax to easily understand your code. I always prefer a more verbose & descriptive syntax if performance is not effected - you never know when your going to have to pass the support of that code on :)

提交回复
热议问题