As you know, unique
columns only accept non-repetitive values. Now, I saw a keyword named IGNORE
(It is used after INSERT
statement).
Well, I read about INSERT IGNORE
in the documentation and I figured out its job is exactly what unique
does! So, when should I use IGNORE
instead of unique
column? When it is useful?