我正在尝试创建一个这样的表:
CREATE TABLE CCBCNV-LEGACYD.CV_PLSQL_COUNT
(
RUN_DTTM DATE NOT NULL,
TABLE_NAME VARCHAR(80) NOT NULL,
COUNT NUMBER(50)
);
但我得到错误:
Error starting at line 2 in command:
CREATE TABLE CCBCNV-LEGACYD.CV_PLSQL_COUNT /* was CCBCNV-LEGACYD-CCBMIG, CHG */
(
RUN_DTTM DATE NOT NULL,
TABLE_NAME VARCHAR(80) NOT NULL,
COUNT NUMBER(50)
)
Error at Command Line:2 Column:20
Error report:
SQL Error: ORA-00922: missing or invalid option
00922. 00000 - "missing or invalid option"
*Cause:
*Action:
发生了什么事?句点是否会导致表名出现问题(即名称是什么)?
答案 0 :(得分:-1)
这最终对我有用:
CREATE TABLE "CCBCNV-LEGACYD.CV_PLSQL_COUNT"
(
RUN_DTTM DATE NOT NULL,
TABLE_NAME VARCHAR(30) NOT NULL,
"COUNT" NUMBER(30)
);