Forum Moderators: open
Your table will need a primary key or unique index for this to work.
So your statement will look like
insert ignore into tablename values (fields);
At the end of the statement your table will definitely have that row in it. If you need to find out if a row was actually inserted you can pull in the affected row count in the usual way and test it for being >0.