delete duplicate records from MYSQL Table no unique column yet -


i know has been asked before cant code work on table.

i have table products

as follows

    products_id  products_model   ect     1            abc              blah     1            abc              blah     2            def              blah     2            def              blah 

and on,

i make products_id unique have duplicates based upon product_id column.

how can rid of duplicates, dont care 1 need rid of them.

thankyou.

try execute statement,

alter ignore table products add constraint tb_uq unique (products_id) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -