Problemn
I have a unique column in the table, and it's work when i do:
insert ... name = funcionario...
save
insert ... name = funcionario...
duplicate error
but I would like it to do some equalities that it doesn't, like:
funcionário == funcionario (ignoring accents) == Funcionario (case insensitive)
if they are equals, do not insert
What the best form to do that?
COLLATE Latin1_General_CI_AI
;- First do
SELECT ...
after, if not find equals,INSERT...
; - Lower in insertion;
- Create another column with normalized names and use them to check;
The last option requires twice as much disk space, but is faster; The lower; The comparison with lower I saw that it ignores the indexes, so it is much slower; COLLATE I don't know the computational complexity;
What the best form to do that? Is there another option?