SELECTING with multiple WHERE conditions on same column

后端 未结 12 929
南旧
南旧 2020-11-22 07:00

Ok, I think I might be overlooking something obvious/simple here... but I need to write a query that returns only records that match multiple criteria on the same column...<

12条回答
  •  终归单人心
    2020-11-22 07:54

    Use this: For example:

    select * from ACCOUNTS_DETAILS
    where ACCOUNT_ID=1001
    union
    select * from ACCOUNTS_DETAILS
    where ACCOUNT_ID=1002
    

提交回复
热议问题