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 用法 » 查询和数据修改 » 连接:从多个表检索数据 » 键连接

 

在有多个外键关系时的键连接

SQL Anywhere 尝试基于外键关系生成连接条件时,有时会找到有多个关系。在这些情况下,SQL Anywhere 通过将外键的角色名与该外键引用的主键表的相关名相匹配,确定要使用的外键关系。

以下几节介绍 SQL Anywhere 如何为键连接生成连接条件。

 相关名和角色名
 生成连接条件
 另请参见
 示例 1
 示例 2
 示例 3
 示例 4
 注意