Using the “IN” clause with a comma delimited string from the output of a replace() function in Oracle SQL

前端 未结 5 918
逝去的感伤
逝去的感伤 2020-11-29 09:45

I have an comma delimited string which I want to use in an \"IN\" clause of the statement. eg: 100,101,102

Since In and \"IN\" clause I have to quote the individial

5条回答
  •  清酒与你
    2020-11-29 10:26

    You can use your approach with REPLACE and IN if you format the entire select as a string - then use the string with either OPEN refcursor FOR or EXECUTE IMMEDIATE.

提交回复
热议问题