Execution error: [Vertica][VJDBC](4856) ERROR: Syntax error at or near "."
Execution error: [Vertica][VJDBC](4856) ERROR: Syntax error at or near "."
试图将此 activity 插入我的 table 但出现如下错误。有什么想法吗? SQL 查询检查器一直在我的插入语句中告诉我它,但我没有看到任何异常值。谢谢!
INSERT INTO
"_CEL_MD_ACTIVITIES" ("_CEL_MD_ACTIVITIES"."CASE_KEY", "_CEL_MD_ACTIVITIES"."ACTIVITY_EN", "_CEL_MD_ACTIVITIES"."EVENTTIME")
SELECT
"_CEL_MD_CASE_TABLE"."CASE_ID" AS "_CEL_MD_ACTIVITIES"."CASE_KEY",
'Case Reopened' AS "_CEL_MD_ACTIVITIES"."ACTIVITY_EN",
"_CEL_MD_CASE_TABLE"."CASE_REOPEN_DATE" AS "_CEL_MD_ACTIVITIES"."EVENTTIME"
FROM
"_CEL_MD_CASE_TABLE"
JOIN
"_CEL_MD_ACTIVITIES"
ON "_CEL_MD_CASE_TABLE"."CASE_ID" = "_CEL_MD_ACTIVITIES"."CASE_KEY"
WHERE
"_CEL_MD_CASE_TABLE"."CASE_REOPEN_DATE" IS NOT NULL;
Execution error: [Vertica]VJDBC ERROR: Syntax error at or near
"."
您使用连接中涉及的 table 的名称和字段作为别名。
例如
AS "_CEL_MD_ACTIVITIES"."ACTIVITY_EN",
这是不正确的。您应该更改您的别名并且不要在其中使用点 (.) 或删除别名的使用
试图将此 activity 插入我的 table 但出现如下错误。有什么想法吗? SQL 查询检查器一直在我的插入语句中告诉我它,但我没有看到任何异常值。谢谢!
INSERT INTO
"_CEL_MD_ACTIVITIES" ("_CEL_MD_ACTIVITIES"."CASE_KEY", "_CEL_MD_ACTIVITIES"."ACTIVITY_EN", "_CEL_MD_ACTIVITIES"."EVENTTIME")
SELECT
"_CEL_MD_CASE_TABLE"."CASE_ID" AS "_CEL_MD_ACTIVITIES"."CASE_KEY",
'Case Reopened' AS "_CEL_MD_ACTIVITIES"."ACTIVITY_EN",
"_CEL_MD_CASE_TABLE"."CASE_REOPEN_DATE" AS "_CEL_MD_ACTIVITIES"."EVENTTIME"
FROM
"_CEL_MD_CASE_TABLE"
JOIN
"_CEL_MD_ACTIVITIES"
ON "_CEL_MD_CASE_TABLE"."CASE_ID" = "_CEL_MD_ACTIVITIES"."CASE_KEY"
WHERE
"_CEL_MD_CASE_TABLE"."CASE_REOPEN_DATE" IS NOT NULL;
Execution error: [Vertica]VJDBC ERROR: Syntax error at or near "."
您使用连接中涉及的 table 的名称和字段作为别名。 例如
AS "_CEL_MD_ACTIVITIES"."ACTIVITY_EN",
这是不正确的。您应该更改您的别名并且不要在其中使用点 (.) 或删除别名的使用