sql进阶-删除所有的视图

Posted namedL

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql进阶-删除所有的视图相关的知识,希望对你有一定的参考价值。

declare   @sql   varchar(8000)
set   @sql=‘‘
select   @[email protected]+ , +name   from   sysobjects
where   type= V    and   name   not   in( syssegments ,   sysconstraints )
set   @sql= drop   view   +stuff(@sql,   1,   1,    )
exec(@sql)

 

以上是关于sql进阶-删除所有的视图的主要内容,如果未能解决你的问题,请参考以下文章