Search:

Type: Posts; User: Twey; Keyword(s):

Search: Search took 0.04 seconds.

  1. Replies
    7
    Views
    106,552

    SELECT * FROM mytable WHERE id IN (11, 2, 5)...

    SELECT * FROM mytable WHERE id IN (11, 2, 5) ORDER BY FIELD(id, 11, 2, 5);
  2. Replies
    7
    Views
    106,552

    SELECT * FROM mytable WHERE id IN (2, 5, 11);

    SELECT * FROM mytable WHERE id IN (2, 5, 11);
Results 1 to 2 of 2