查看表与视图的依赖

前端之家收集整理的这篇文章主要介绍了查看表与视图的依赖前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
alter function F_Get_DepentTable_Ralation ( @table sysname ) /* 查看表与视图的依赖 */ returns table as return( SELECT sysobjects.name AS 'view',sysobjects_1.name AS 'depend table' FROM sysobjects INNER JOIN sysdepends ON sysobjects.id = sysdepends.id INNER JOIN sysobjects sysobjects_1 ON sysdepends.depid = sysobjects_1.id WHERE (sysobjects.xtype = 'v') AND (sysobjects_1.name = @table) GROUP BY sysobjects.name,sysobjects_1.name) 原文链接:https://www.f2er.com/javaschema/287076.html

猜你在找的设计模式相关文章