首页 > 数据库技术 > 详细

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

时间:2015-12-23 16:07:10      阅读:200      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!