`
cuichang
  • 浏览: 93005 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

判断数据库中有哪些表有这个字段

 
阅读更多

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')

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics