Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread Johan De Meersman
Hornung chris.horn...@klaviyo.com To: MySql mysql@lists.mysql.com Sent: Monday, 23 March, 2015 18:20:36 Subject: duplicate rows in spite of multi-column unique constraint Hello, I'm come across a situation where a table in our production DB has a relatively small number of duplicative rows

Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread Chris Hornung
a trailing space or similar 'invible' character that makes it not identical. - Original Message - From: Chris Hornungchris.horn...@klaviyo.com To: MySqlmysql@lists.mysql.com Sent: Monday, 23 March, 2015 18:20:36 Subject: duplicate rows in spite of multi-column unique constraint Hello, I'm

Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread shawn l.green
Hi Chris, On 3/24/2015 10:07 AM, Chris Hornung wrote: Thanks for the suggestions regarding non-printing characters, definitely makes sense as a likely culprit! However, the data really does seem to be identical in this case: mysql select id, customer_id, concat('-', group_id, '-') from

duplicate rows in spite of multi-column unique constraint

2015-03-23 Thread Chris Hornung
Hello, I'm come across a situation where a table in our production DB has a relatively small number of duplicative rows that seemingly defy the unique constraint present on that table. We're running MySQL 5.6.19a via Amazon RDS. The table in question is ~250M rows. `show create table`