onDuplicate

onDuplicate insertion

Pass the instructions

Method prototype

function onDuplicate($updateColumns, $lastInsertId = null)
  • $updateColumns Updated column
  • $lastInsertId Can not pass, if passed, update the $lastInsertId line data