寻找数据库中的触发器、存储过程等

来源:互联网 发布:mysql 导出文件格式 编辑:程序博客网 时间:2024/05/28 20:20

select name from sysobjects where xtype='TR' --所有触发器

select name from sysobjects where xtype='P' --所有存储过程

select name from sysobjects where xtype='V' --所有视图

select name from sysobjects where xtype='U' --所有表

 

以上为SqlServer用法

 

Select object_name From user_objects Where object_type='TRIGGER';  --所有触发器

Select object_name From user_objects Where object_type='PROCEDURE';  --所有存储过程

Select object_name From user_objects Where object_type='VIEW';  --所有视图

Select object_name From user_objects Where object_type='TABLE'; --所有表

 

以上为Oracle用法

原创粉丝点击