Multiple OR Clauses in MySQL

后端 未结 7 1451
陌清茗
陌清茗 2020-12-06 05:22

I\'m trying to grab content where id = 3 OR id = 9 OR id = 100... Keep in mind, I can have a few hundred of these ids.

What is the most efficient way to write my q

相关标签:
7条回答
  • 2020-12-06 06:00
    SELECT * FROM table WHERE id IN (1,2,5)
    
    0 讨论(0)
提交回复
热议问题