SQL multiple columns in IN clause

后端 未结 6 1998
情书的邮戳
情书的邮戳 2020-11-27 04:15

If we need to query a table based on some set of values for a given column, we can simply use the IN clause.

But if query need to be performed based on multiple col

6条回答
  •  自闭症患者
    2020-11-27 05:09

    In Oracle you can do this:

    SELECT * FROM table1 WHERE (col_a,col_b) IN (SELECT col_x,col_y FROM table2)
    

提交回复
热议问题