![]() Topic awaiting preservation: MySQL/PHP finding duplicates in table (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Greets! |
Lunatic (VI) Inmate From: under the bed |
![]() |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() Indeed, DL is on the right road. code: select count (id) as cnt from myTable GROUP by name HAVING cnt > 1
|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() Boy could I have used something like that about 2 months ago. |
Nervous Wreck (II) Inmate From: |
![]() SELECT DISTINCT might also help compile an index of which rows you want to keep, though admittedly TP hit that nail pretty well already. |