Select … where … OR

后端 未结 7 954
误落风尘
误落风尘 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)
    
    0 讨论(0)
提交回复
热议问题