Insert or update if unique key already exist


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. INSERT INTO `tableName`
  2. VALUES (?,?,?,'-1',?,'0')
  3. UPDATE `id` = ?, `foo` = ?, `bar` = ?

Report this snippet


Comments


You need to login to view comments.