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
Request clarification before answering.
a simple error in the syntax
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this out
insert into table_name values(100,12,to_date('01-Dec-10','DD-MON-YY'),'ENTRY');
Regards
Kausik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to use the following format instead:
INSERT INTO <table_name> (<field1>,<field2>,...) VALUES (<value1>,<value2>,...);
Br,
Javier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using single quotes for the date part: INSERT INTO <TABLE> VALUES(100,12,'01-Dec-10','ENTRY')
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.