WordPress.org

Ready to get started?Download WordPress

Forums

wpdb->query and IN (1,2,3,4,5) queries (2 posts)

  1. naabster
    Member
    Posted 5 years ago #

    Hi,
    I am trying to get $wpdb to return a Query with an "IN" statement in the WHERE clause, but although the query is perfectly ok, I only getting errors..

    Query looks like this:
    UPDATE table SET caption = 'abcd' WHERE id IN (17,18,19,20,21,22)

    looks like $wpdb doesnt understand "IN" or is there something i am missing?

  2. MichaelH
    Member
    Posted 5 years ago #

    return a Query

    You are updating the table.

    Now what table are you updating?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags