I'm running into an oracle error,
ORA-00933: SQL command not properly ended
With the follwing.
insert into TableOne (name, description, scopeid, readonly)
Select 'access', 'Some Description', 0, 0 from dual
where not exists(SELECT * FROM Privilege WHERE name = 'access')
/
insert into TableTwo (name, uuid, description, scopeid)
Select 'Role','ROLE_UUID','Another description.', 0 from dual
where not exists(SELECT * FROM Role WHERE uuid = 'ROLE_UUID')
/
I have added semicolons at the end of each statement before the '/'.
Any suggestions where I may be wrong?
You didn't post
CREATE TABLEstatements so I did that myself.Let's run
insertstatements you posted as exact copy/paste (I didn't change anything):Apparently, both of them work and no
ORA-00933(SQL command not properly ended) is raised. Therefore, either you didn't post everything you should have, or you're misinterpreting reality.