Vous voulez probablement ON DUPLICATE KEY
:
INSERT INTO totals (entryday, total)
VALUES ("08-01-11", 1)
ON DUPLICATE KEY UPDATE total = total + 1
Cela définira le total "08-01-11" à 1 si une ligne n'existe pas déjà pour cette date et incrémenter le total par 1 si c'est le cas.