码迷,mamicode.com
首页 > 数据库 > 详细

查询数据库中各个类型的方法名称

时间:2015-12-23 16:08:33      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:

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用法

查询数据库中各个类型的方法名称

标签:

原文地址:http://www.cnblogs.com/chlf/p/5069955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!