Oracle SQL:从IN子句检索不存在的值

Oracle SQL:从IN子句检索不存在的值,第1张

Oracle SQL:从IN子句检索不存在的值

生成伪造行的一种好方法是使用标准集合,例如

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


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5675490.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存