Select … where … OR

后端 未结 7 949
误落风尘
误落风尘 2021-02-05 09:09

Is there a way to select data where any one of multiple conditions occur on the same field?

Example: I would typically write a statement such as:

select          


        
7条回答
  •  梦谈多话
    2021-02-05 09:39

    Sure thing, the simplest way is this:

    select foo from bar where baz in (1,2,3)
    

提交回复
热议问题