I have a shopping cart, Cubecart to be exact.
How can I search the DB for duplicate data in a column?
Say the table is called “CC_inventory” and the column I want to use to find the duplicates is called “barcode”, what query would I use to list all the products with the same barcode?
The reason Im doing this is I have about 2000 items in the DB and I want to add about 900 more from a spreadsheet. I know for sure theres proably about 300 items in that spreadsheet that are already in the DB. I want to do an import of this data and then use phpmyadmin to find all the duplicates…
Thanks if you can help, Im not really up with Mysql stuff…
Edit: I found this query and I think it will do what I need.
select *
from wp_posts
group by post_content
having count(*) > 1