Insert or update if unique key already exist


/ Published in: MySQL



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

RSS Icon Subscribe to comments

You need to login to post a comment.