Oracle Style Joins in SQL Server

后端 未结 2 2031
野的像风
野的像风 2020-12-21 11:27

Is there a way to do oracle style joins in SQL Server?

select * 
from t1, t2
where t1.id = t2.id (+)

EDIT

Why is it preferabl

2条回答
  •  忘掉有多难
    2020-12-21 11:32

    SELECT *
    FROM t1
    LEFT OUTER JOIN t2 ON t1.id = t2.id
    

    This AskTom article shows you the syntax equivalencies from (+) to (LEFT AND RIGHT) OUTER JOIN for Oracle, and SQL Server uses the OUTER JOIN syntax.

提交回复
热议问题