Skip to content
Advertisement

SQL navigator – “insert into” statement not working on multiple rows

One row works fine:

But adding one more row does not work:

Error: SQL command not properly ended

Advertisement

Answer

Your error message looks like Oracle’s ORA-00933 (whose message is SQL command not properly ended). Indeed, this database (unlike many others) does not support the syntax you are using to insert multiple rows at once.

If you want to do this in a single statement, you can use the insert all syntax instead. Its purpose is to insert into one or multiple tables, so you need to repeat the table name and column list:

Side note: you seem to be attempting to insert into date columns. If so, I would recommend using the standard syntax to declare date literals rather than this custom format (whether Oracle will successfully interpret it as a date depends on your database and session settings). That would be:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement