MySQL Select Multiple VALUES

前端 未结 2 1700
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 04:33

Totally out of ideas here, could be needing a simple solution.

Basically my desired query is :

SELECT * FROM table WHERE id = 3,4

I

2条回答
  •  无人及你
    2020-12-01 04:53

    Try this -

     select * from table where id in (3,4) or [name] in ('andy','paul');
    

提交回复
热议问题