cancel
Showing results for 
Search instead for 
Did you mean: 

ORA-00926: missing VALUES keyword

06-07-2010 9:46 PM
2045 views 6 comments
0 Likes
SAP Managed Tags
Subscribe

Hello,

when i try to start an insert statement at a remote database I m getting the following error message:

ORA-00926: missing VALUES keyword

the statement is INSERT INTO <TABLE> VALUES(100,12,01-Dec-10,'ENTRY')

the table has the following form: COL1 (NUMC), COL2(NUMC, COL3(DATE) COl4 (VARCHAR255)

i tried to use several formats but i m not getting any solution for inserting. The user i m using has the privileges for inserting.

has anyone a solution what will be the error?

Thanks

0 Likes

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

a simple error in the syntax

Former Member
0 Likes

Try this out

insert into table_name values(100,12,to_date('01-Dec-10','DD-MON-YY'),'ENTRY');

Regards

Kausik

Former Member
0 Likes

Hello together,

thanks for your help!

The ' were the problems its running fine now;)

Former Member
0 Likes

Please mark it as answered.

fjhernanz
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

Try to use the following format instead:

INSERT INTO <table_name> (<field1>,<field2>,...) VALUES (<value1>,<value2>,...);

Br,

Javier

Former Member
0 Likes

Try using single quotes for the date part: INSERT INTO <TABLE> VALUES(100,12,'01-Dec-10','ENTRY')

Kind regards,

Mark