查询某个表所涉及的 存储过程Procedure, 视图view , 方法Function

/*
查询某个表所涉及的Procedure,Package,Function
*/
select name,type,referenced_owner,referenced_name,
referenced_type
from user_dependencies
where referenced_name=‘Mytable‘   -- Mytable 表名

and type=‘procedure‘;   -- 储过程Procedure, 视图view , 方法Function

原文地址:https://www.cnblogs.com/eastward/p/11988337.html

时间: 2024-08-02 02:51:50

查询某个表所涉及的 存储过程Procedure, 视图view , 方法Function的相关文章

[Nhibernate]SchemaExport工具的使用(二)——创建表及其约束、存储过程、视图

目录 写在前面 文档与系列文章 表及其约束 存储过程 视图 总结 写在前面 由于一直在山西出差,有几天没更新博客了.昨晚回到家,将博客园最近三天更新的文章搜集了一下,花费了半天的时间,看了看,有些文章也只能先躺在收藏夹里,慢慢去消化了.废话不多说了,进入正题,那么这篇文章就让我们接着学习SchemaExport工具的使用吧,如何使用SchemaExport为表添加约束,生成存储过程,生成视图? 文档与系列文章 [Nhibernate]体系结构 [NHibernate]ISessionFactor

oracle表不能DDL和存储过程不能创建处理方法

在做数据迁移的过程中,我们会面临两种常见的hang住场景: 1.表不能修改加字段,不能增大长度. 2.存储过程不能覆盖. 场景1:为表添加字段hang住的处理 session1: create table test as select * from dba_objects; select * from test where object_id = 20 for update; session2: alter table test add  aa number;--hang住 session3:

sql server查看有哪些存储过程和视图的方法

select * from sys.sysobjects where type='p'  //存储过程 select * from sys.sysobjects where type='v'  //视图 sp_helptext procName //查看存储过程结构 sp_helptext vwName //查看视图结构

SQL查询一个表中类别字段中Max()最大值对应的记录

问题是: 数据库有一个表 code,里面有个点击量字段click_num和一个类别字段kind以及其它信息字段, 现在要搜出每个类别中点击量最大的那条记录,如果是10个类别,那么结果应该是10条记录, 如果最大点击量有两个相同的只要一条. 经过N次搜索,N次检测网上的解决SQL语句,终于找到个优雅的而且结果正确的SQL,这个是一个博客作者在Mysql的官方文档里面发现的. 禁不住收藏了,以备后用. select id,kind,click_num from code as a where  cl

查询所有表名、字段名、类型、长度 和 存储过程、视图 的创建语句

-- 获得存储过程创建语句 select o.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm.id where xtype ='p' order by o.xtype,o.name,cm.text -- 获得视图程创建语句 select o.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm.i

SQL 查询所有表名、字段名、类型、长度、存储过程、视图

-- 获得存储过程创建语句 select o.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm.id where xtype ='p' order by o.xtype,o.name,cm.text -- 获得视图程创建语句 select o.xtype,o.name,cm.text from syscomments cm inner join sysobjects o on o.id=cm.i

SQL 查询某个表被哪些存储过程使用到

--1.查询某个表被哪些存储过程使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P') and text like'%TableName%' --2.查找那些过程对该表做了更新操作: select distinct object_name(id) from syscomments where id in(select

SQL server 查询某个表在哪些存储过程(SP)中使用到

1.查询某个表被哪些存储过程(以下简称 SP)使用到 : select distinct object_name(id) from syscomments where id in (select id from sysobjects where type ='P') and text like'%TableName%' 2.查找那些过程对该表做了更新操作: select distinct object_name(id) from syscomments where id in (select i

sql server 查询某个表被哪些存储过程调用

原文:sql server 查询某个表被哪些存储过程调用 sql server 查询某个表被哪些存储过程调用 select distinct object_name(id) from syscomments where id in (select id from sysobjects where type ='P') and text like'%TableName%' 原文地址:https://www.cnblogs.com/lonelyxmas/p/9491635.html