不支持的表达式 (Entity SQL)

本主题介绍 Entity SQL 中不支持的 Transact-SQL 表达式。有关更多信息,请参见 Entity SQL 与 Transact-SQL 的区别

限定谓词

Transact-SQL 允许以下形式的构造:

sal > all (select salary from employees)
sal > any (select salary from employees)

但 Entity SQL 不支持这样的构造。在 Entity SQL 中的等效表达式可以写为如下形式:

not exists(select 0 from employees as e where sal > e.salary)
exists(select 0 from employees as e where sal > e.salary)

* 运算符

Transact-SQL 支持在 SELECT 子句中使用 * 运算符来表示应提取出所有列。在 Entity SQL 中不支持使用此运算符。

另请参见

概念

Entity SQL 概述
Entity SQL 与 Transact-SQL 的区别