日期:2014-05-19  浏览次数:20347 次

函数,很简单
存储过程开始可以写
if   exist(...)
drop   procName

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

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