Ver originalREPLACE INTO tabla(Detalle1, total)SELECT Detalle1, count(Detalle1) total FROM padronGROUP BY Detalle1