You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often times it's useful to update existing rows if present and insert if missing. An example of this in WordPress is the update_post_meta function. It would be useful to be able to do something like this:
The column(s) that uniquely identify whether the record already exists
The column(s) to update if the record does exist
Under the hood this will probably use the ON DUPLICATE KEY UPDATE SQL syntax, as such it will be important that the identifier column(s) are either "primary" or "unique".
The text was updated successfully, but these errors were encountered:
Often times it's useful to update existing rows if present and insert if missing. An example of this in WordPress is the
update_post_meta
function. It would be useful to be able to do something like this:Arguments:
Under the hood this will probably use the ON DUPLICATE KEY UPDATE SQL syntax, as such it will be important that the identifier column(s) are either "primary" or "unique".
The text was updated successfully, but these errors were encountered: