Forum Moderators: open
I want to insert the value 'John Doe' into the field 'b' IF the value 'John Doe' does not already exist in any rows of the 'b' field for table1.
INSERT INTO table1 (b)
VALUES ('John Doe')
WHERE NOT EXISTS (SELECT * FROM table1 WHERE b = 'John Doe')