Using LIKE in an Oracle IN clause

前端 未结 9 1544
情深已故
情深已故 2020-12-06 09:49

I know I can write a query that will return all rows that contain any number of values in a given column, like so:

Select * from tbl where my_col in (val1, v         


        
9条回答
  •  离开以前
    2020-12-06 10:16

    select * from tbl
     where exists (select 1 from all_likes where all_likes.value = substr(tbl.my_col,0, length(tbl.my_col)))
    

提交回复
热议问题