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

SQL Anywhere 12.0.0 (中文) » SQL Anywhere 服务器 - SQL 的用法 » 查询优化与执行 » 语义查询转换

 

排除不必要的 DISTINCT 条件

有时 DISTINCT 条件是不必要的。例如,结果中的一个或多个列的属性可能(显式或隐式地)包含了 UNIQUE 条件,因为它是主键。

 示例