on 2015 Apr 08 7:37 PM
Hi,
Tried using INSERT ALL INTO command inside Script. But getting below error.
Oracle <> error message for operation <OCIStmExecute>: <ORA-00928: missing SELECT keyword>.
Same query with single insert statement runs fine without any issues.
Oracle eg:
INSERT ALL
INTO item (title) VALUES ('title5')
INTO item (title) VALUES ('title6')
INTO item (title) VALUES ('title7')
SELECT * FROM dual;
Appreciate your suggestions.
Thx
Request clarification before answering.
Any suggestions ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Actual syntax is as below:
INSERT ALL
INTO suppliers (supplier_id, supplier_name) VALUES (1000, 'IBM')
INTO suppliers (supplier_id, supplier_name) VALUES (2000, 'Microsoft')
INTO suppliers (supplier_id, supplier_name) VALUES (3000, 'Google')
SELECT * FROM dual;
Now in your non working query, you have applied comma after first INTO statement.
Please remove it.
Thanks,
Swapnil
Hi Debasree,
Could you please split the INSERT ALL statement and check if they are working individually.
I see in the screenshot you are missing select * from dual; for first insert all statement. The error also suggests the same thing(Missing Select...)
Regards
Arun Sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 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.