Buscar duplicados en mysql


SELECT *,count(*) AS 'Num_repeticiones'
FROM tabla
GROUP BY campo
HAVING count(*)=1;

0 comentarios:

Publicar un comentario