Hello,
How do I insert a record into a column, if that record does not already exist.
If it does exist, then do nothing:
----------------------------------------------------------------------
INSERT INTO _table (_item) VALUES ('001') ..... ?
If _item 001 does not exist, then insert it, else do nothing.
----------------------------------------------------------------------
Please note that _item IS NOT a primary key, but I can't have duplicates there.
I'm using mysql 5.1.
Thanks,
Rick
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.