MySQL Forums
Forum List  »  Newbie

Re: Dependent Insert
Posted by: Huu Da Tran
Date: July 29, 2008 11:22AM

That's exactly what I said: put a unique index (T1GUID, FamilyName) in your table definition to have the two last columns unique together.

Stored procedures are DBMS specific. Each one has its own "programming" language.

It's hard to suggest a way to do it since we don't really know how your system works. Do you have thousand records each second or in a day? in an hour? It all depends on load. You may retrieve list of known colors, look through the list of colors you try to use, find out which one don't exist, add them. In the next step, you would not need to care if it exists or not, because you already validated it.

Good luck,

Huu Da
MySQL flirter

Options: ReplyQuote


Subject
Written By
Posted
July 28, 2008 11:00PM
July 29, 2008 06:46AM
July 29, 2008 08:19AM
July 29, 2008 10:52AM
Re: Dependent Insert
July 29, 2008 11:22AM
July 29, 2008 11:42AM
July 29, 2008 02:07PM
July 29, 2008 05:02PM
July 30, 2008 06:57AM


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.