MySQL INSERT IGNORE not working

Posted by gAMBOOKa on Stack Overflow See other posts from Stack Overflow or by gAMBOOKa
Published on 2010-06-14T06:32:34Z Indexed on 2010/06/14 6:42 UTC
Read the original article Hit count: 152

Filed under:
|
|

Here's my table with some sample data

a_id | b_id
------------
  1    225
  2    494
  3    589

When I run this query

INSERT IGNORE INTO table_name (a_id, b_id) VALUES ('4', '230') ('2', '494')

It inserts both those rows when it's supposed to ignore the second value pair (2, 494)

No indexes defined, neither of those columns are primary.

What don't I know?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about insert