I know there's an insert and update function but is there a way to update on duplicate key?
I know there's an insert and update function but is there a way to update on duplicate key?
Sure. You can feed $wpdb->query any MySQL command you want.
I know but a function or argument in the insert function would be useful
As far as I know, there isn't. Submit a patch if you really feel strongly about it.
You must log in to post.