码迷,mamicode.com
首页 > 其他好文 > 详细

查看当前库中所有触发器及其对应表名

时间:2018-07-12 16:39:32      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:bsp   trigger   objects   sele   sel   HERE   pre   type   table   

SELECT tb2.name AS tableName,tb1.name AS triggerName FROM Sysobjects tb1 JOIN Sysobjects tb2 ON tb1.parent_obj=tb2.id  WHERE tb1.type='TR'


查看当前库中所有触发器及其对应表名

标签:bsp   trigger   objects   sele   sel   HERE   pre   type   table   

原文地址:http://blog.51cto.com/13866219/2140898

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