Is there an equivalent to INSERT IGNORE
in the wpdb
class? As I'm fetching and inserting a twitter feed and the field in which I store the tweet ID is keyed UNIQUE
, I am aware that duplicates are going to occur and do not need Wordpress informing me of them in my PHP error log. (Note, I would write the query I need and $wpdb->prepare
it, but for whatever reason, that throws a bunch of other errors [that I'd be happy to share though don't consider them relevant to this question]).
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
||||
To answer the question directly, there is |
|||||
|
INSERT ... ON DUPLICATE KEY UPDATE ...
– birgire Apr 18 at 14:43INSERT IGNORE
not the done thing? – Evan Rose Apr 18 at 17:51