select *
from all_tab_cols a
where a.column_name = '字段名'
and a.owner = '数据库用户名'
and a.table_name not in
(select t.tname from tab t where t.tabtype = 'VIEW')
本文介绍了一种SQL查询方法,用于从指定的所有者及表中(排除视图)筛选特定字段名的数据。
select *
from all_tab_cols a
where a.column_name = '字段名'
and a.owner = '数据库用户名'
and a.table_name not in
(select t.tname from tab t where t.tabtype = 'VIEW')
8736

被折叠的 条评论
为什么被折叠?