Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - SQL 用法 » 查询和数据修改 » 连接:从多个表检索数据 » 显式连接条件(ON 子句)

 

显式连接条件的类型

大多数连接条件都是基于等同性的,因此称作等值连接。例如:

SELECT *
FROM Departments JOIN Employees
   ON Departments.DepartmentID = Employees.DepartmentID;

但是,您并非一定要在连接条件中使用等号 (=)。您可以使用任何搜索条件,例如包含 LIKE、SOUNDEX、BETWEEN、>(大于)和 !=(不等于)的搜索条件。

 示例
 另请参见