Sha*_*bal 3 sql t-sql sql-server
有人问我下面查询的输出。
Select *
from TableA t1, TableB t2
where t1.Id *= t2.Id
Run Code Online (Sandbox Code Playgroud)
任何人都可以向我解释一下,如果存在任何类型的查询,如果存在,那么它是如何工作的。因为我从未见过这样的查询谢谢。
更新:
同样,当我在SQL Server中运行此查询时,也会得到此信息。
The query uses non-ANSI outer join operators ("*=" or "=*").
To run this query without modification, please set the compatibility level
for current database to 80, using the SET COMPATIBILITY_LEVEL option
of ALTER DATABASE.
It is strongly recommended to rewrite the query using ANSI outer join
operators (LEFT OUTER JOIN, RIGHT OUTER JOIN).
In the future versions of SQL Server, non-ANSI join operators will
not be supported even in backward-compatibility modes.
Run Code Online (Sandbox Code Playgroud)