bluegroper
Technical User
How to insert a record making sure there's no duplicate ?
INSERT INTO invoices (invoiceid, billed) VALUES ('12345', 'TRUE')
WHERE NOT EXISTS (SELECT * FROM invoices WHERE invoices.invoiceid = '12345')
I keeps getting an error message and can't figure out how to do this ?
Syntax error at or near "WHERE"
Much TIA's
INSERT INTO invoices (invoiceid, billed) VALUES ('12345', 'TRUE')
WHERE NOT EXISTS (SELECT * FROM invoices WHERE invoices.invoiceid = '12345')
I keeps getting an error message and can't figure out how to do this ?
Syntax error at or near "WHERE"
Much TIA's