add an opton to update table values while insert using ON DUPLICATE KEY ...

add an opton to update table values while insert using ON DUPLICATE KEY from mysql
http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html