Código PHP:
Ver original
foreach ($datos as $key => $registro) { insert..... }
[PDOException]
SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates u
nique constraint "guagr_uk"
DETAIL: Key (guagr_fecha)=(18-05-2017 15:40:07 ) already exists.