Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[4.2EA] formatter error (INSERT ... LOG ERRORS)

B.DelméeSep 29 2016 — edited Sep 29 2016

CREATE TABLE err_test ( ID INTEGER NOT NULL, VAL VARCHAR2(64));

EXEC dbms_errlog.create_error_log('ERR_TEST','ERR_TEST_ER');

INSERT INTO err_test (ID, val)

SELECT 1, 'one' FROM dual

LOG ERRORS INTO err_test_er(to_char(sysdate,'YYYY-MM-DD HH24:MI:SS')) REJECT LIMIT UNLIMITED;

formatting the insert statement results in

INSERT INTO err_test (ID, val)

SELECT 1, 'one' FROM dual

LOG ERRORS INTO err_test_er(to_char

/*** Syntax Error at line 2, column 36

LOG ERRORS INTO err_test_er(to_char(sysdate,'YYYY-MM-DD HH24:MI:SS')) REJECT LIMIT UNLIMITED;

                                    ^^^                                                      

Expected: '(',

***/(sysdate,'YYYY-MM-DD HH24:MI:SS')) REJECT LIMIT UNLIMITED;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2016
Added on Sep 29 2016
1 comment
153 views