当前位置: 代码迷 >> Sql Server >> 函数,很简单解决思路
  详细解决方案

函数,很简单解决思路

热度:84   发布时间:2016-04-27 21:03:24.0
函数,很简单
存储过程开始可以写
if   exist(...)
drop   procName

如果是函数,怎么写上面这句话?

------解决方案--------------------
if exists(select 1 from sysobjects where name= '函数名 ')
drop function 函数名
------解决方案--------------------
if exists(select * from sysobjects where name= '函数名 ')
drop function 函数名
  相关解决方案