这句话为什么出错?

bjzhanghao 2003-05-18 11:45:33
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附近有错误,和)附近有错误。我是在一个自定义函数里用的
...全文
71 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wjjabc 2003-05-18
  • 打赏
  • 举报
回复
同意楼上
ben988211 2003-05-18
  • 打赏
  • 举报
回复
)附近有错误

)错了 英语状态
ben988211 2003-05-18
  • 打赏
  • 举报
回复
declare @flag int
set @flag=1
if(0<(select count(*) from personchangeunit where personid=@pid) and (tounitid is null or tounitid=''))
set @flag=0

34,838

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧