SQL Server - lack of NATURAL JOIN / x JOIN y USING(field)

后端 未结 4 1085
一整个雨季
一整个雨季 2020-12-01 21:46

I\'ve just been reading up on NATURAL JOIN / USING - SQL92 features which are (sadly?) missing from SQL Server\'s current repertoire.

Has anyone come from a DBMS tha

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 22:28

    I never use NATURAL JOIN because I don't like the possibility that the join could do something I don't intend just because some column name exists in both tables.

    I do use the USING join syntax occasionally, but just as often it turns out that I need a more complex join condition than USING can support, so I convert it to the equivalent ON syntax after all.

提交回复
热议问题