If you understand correctly, after running the insert command, your table looks like this:
1 225 2 494 3 589 4 230 2 494
If so, then the answer is because your table design allows duplication.
If you want the second record not to be inserted, you need to define the a_id column as the primary key or a unique index. If you do this, the insert ignore statement will work as you expect, for example, to insert records, to ignore errors such as trying to add a duplicate record.
pdwalker
source share