Thank you for your suggestion.
I realise I probably did not explain fully enough my goal.
Let's say I have 10 columns in my table (excluding the PK).
I only want to store a data row into the table if the
combination of all 10 values is a unique combination set.
Example with a 3 column table:
INSERT Row 1: A,A,A <== OK! Value set unique
INSERT Row 2: A,D,A <== OK! Value set unique
INSERT Row 3: D,T,G <== OK! Value set unique
INSERT Row 4: D,A,A <== OK! Value set unique
INSERT Row 5: A,D,A <== COLLISION with Row 2! Set not unique; skip IN
+SERT
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.