how can to prevent duplicate inserts for every Execute?
insert into IQ (XMLDT)values('<row>sdsdf</row>')
|
how can to prevent duplicate inserts for every Execute?
|
|||||
|
|
Given this table:
We first need a scalar function to extract the value of interest from the XML:
Now we can add a computed column that uses the function:
And a constraint to enforce the desired uniqueness:
Demo:
|
||||
|
|