I have a query like so:
insert into mySchema.myTable (award_id, cust_id) values ('blahblah', 12345)
where not exists (select * from mySchema.myOtherTable where cust_id = 12345);
I am getting error:
ILLEGAL USE OF KEYWORD WHERE. TOKEN FOR <END-OF-STATEMENT> NOT ATOMIC WAS EXPECTED SQL
Code: -199, SQL State: 42601
I have seen a bunch of similar queries accepted as answers, and I don't understand why it's finding issue with this.