不支援的運算式 (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 的差異處