Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORA-00984: column not allowed here [duplicate]

I am doing a simple Oracle INSERT and I keep getting this error: [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 ) 
like image 756
George Murphy Avatar asked Jun 11 '13 21:06

George Murphy


1 Answers

Replace double quotes with single ones:

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        ) 

In SQL, double quotes are used to mark identifiers, not string constants.

like image 114
Quassnoi Avatar answered Sep 19 '22 03:09

Quassnoi