MySQL Forums
Forum List  »  Newbie

Re: Insert restriction
Posted by: Peter Brawley
Date: April 12, 2012 08:30AM

> we can't modify the structure of database tables

In that case, the job you have been given is an unprofessional hack. If you insist on participating in it for some reason, then for each proposed new row, to run a SELECT for those values, and issue an INSERT only if the SELECT returns no rows.

Options: ReplyQuote

Written By
April 12, 2012 05:03AM
April 12, 2012 05:06AM
April 12, 2012 06:25AM
Re: Insert restriction
April 12, 2012 08:30AM
April 12, 2012 06:48AM
April 12, 2012 06:56AM
April 12, 2012 07:02AM
April 12, 2012 11:56PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.