生成伪造行的一种好方法是使用标准集合,例如
sys.odcivarchar2list:
select tables_to_check.table_name, case when user_tables.table_name is null then 'No' else 'Yes'end table_existsfrom( select column_value table_name from table(sys.odcivarchar2list('does not exist', 'TEST1'))) tables_to_checkleft join user_tables on tables_to_check.table_name = user_tables.table_nameorder by tables_to_check.table_name;TABLE_NAME TABLE_EXISTS---------- ------------TEST1 Yesdoes not exist No


