Oracle SQL : Retrieving non-existing values from IN clause

前端 未结 5 1478
孤独总比滥情好
孤独总比滥情好 2021-01-23 16:00

Having following query:

select table_name
from user_tables
where table_name in (\'A\',\'B\',\'C\',\'D\',\'E\',\'F\');

Assuming only user_tables

5条回答
  •  清歌不尽
    2021-01-23 16:54

    You can't. These values have to be entered into a temporary table at the least to do the desired operation. Also Oracle's IN clause list cannot be huge (i.e, not more than 1000 values).

提交回复
热议问题