本主題描述 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 中不支援此設定。