I would like to use ON DUPLICATE KEY UPDATE in Zend Framework 1.5, is this possible?
ON DUPLICATE KEY UPDATE
Example
INSERT INTO sometable (...) VALUES (...) ON DUP
you can simply do something like this:
set unique index on your id
and then
try { do insert here } catch (Exception $e) { do update here }