ORA-00984:这里不允许列

时间:2013-06-11 21:34:17

标签: oracle oracle10g

我正在做一个简单的 Oracle INSERT ,我一直收到这个错误: [Err] ORA-00984: column not allowed here

INSERT INTO MY.LOGFILE
(id,severity,category,logdate,appendername,message,extrainfo)
VALUES
(
"dee205e29ec34",
"FATAL",
"facade.uploader.model",
"2013-06-11 17:16:31",
"LOGDB",
NULL,
NULL
)

1 个答案:

答案 0 :(得分:61)

将双引号替换为单引号:

INSERT
INTO    MY.LOGFILE
        (id,severity,category,logdate,appendername,message,extrainfo)
VALUES  (
       'dee205e29ec34',
       'FATAL',
       'facade.uploader.model',
       '2013-06-11 17:16:31',
       'LOGDB',
       NULL,
       NULL
       )

在SQL中,双引号用于标记标识符,而不是字符串常量。