以下查询在Oracle中的语法错误,但在SQL Server和MySQL中都有效:
SELECT COUNT(DISTINCT end_.cntn_pk)
FROM content end_
INNER JOIN contentrelation AS start_to_end__29
ON end_.cntn_pk = start_to_end__29.corl_fk_to
我有以下错误:
ERROR DSResponseUtil - Unexpected exception
java.sql.SQLSyntaxErrorException: ORA-00905: missing keyword
Oracle不接受别名?如何使它适用于三种数据库类型
感谢您的帮助
答案 0 :(得分:4)
Oracle不接受表的别名
的关键字为答案 1 :(得分:1)
Oracle仅接受 let locationPredicate = NSPredicate(format: "title = %@ OR title = %@ OR title = %@", "Bronco Stadium", "Morrison Center", "2 Morrison Center")
列别名,但不接受表。
但是,AS不是必需的,o您可以随时避免使用它:
AS