I'm not a DBA, so I'm afraid my question will be a bit simple... sorry and help appreciated!
I have a table:
id - primary key
value - varchar
From time to time I need to insert rows where the values come from a web form. I don't know which submitted values might be duplicates. So I need to figure out the most efficient method for a transaction that accomplishes:
"Insert values from the submitted list that are not yet present in that field".
So far that feels like a two-stage query - something like "find those that are in the list" and then parse the submitted items for those that didn't match. But that sounds terribly heavy for what should be simple.
HELP!?
D.E.R. Management - IT Project Management Consulting
I have a table:
id - primary key
value - varchar
From time to time I need to insert rows where the values come from a web form. I don't know which submitted values might be duplicates. So I need to figure out the most efficient method for a transaction that accomplishes:
"Insert values from the submitted list that are not yet present in that field".
So far that feels like a two-stage query - something like "find those that are in the list" and then parse the submitted items for those that didn't match. But that sounds terribly heavy for what should be simple.
HELP!?
D.E.R. Management - IT Project Management Consulting