Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在必须修改的 Sybase TSQL 脚本中看到以下语法:
table1.Column1 *= table2.Column1
这*=部分语法有什么作用?
*=
那是写左外连接的旧方法,=*是右外连接
=*
这两个是一样的
新的 ANSI JOIN
SELECT * FROM Test2 t2 LEFT JOIN Test1 t1 ON t1.id = t2.id
老加入
SELECT * FROM Test1 t1,Test2 t2 WHERE t1.id =* t2.id