declare @flag int
set @flag=1
if(0<select count(*) from personchangeunit where personid=@pid and (tounitid is null or tounitid=''))
set @flag=0
提示select附近有错误,和)附近有错误。我是在一个自定义函数里用的
...全文
713打赏收藏
这句话为什么出错?
declare @flag int set @flag=1 if(0<select count(*) from personchangeunit where personid=@pid and (tounitid is null or tounitid='')) set @flag=0 提示select附近有错误,和)附近有错误。我是在一个自定义函数里用的