K
kukemusic
Unregistered / Unconfirmed
GUEST, unregistred user!
Update ydgh set dr=case when substring(max(dr),7,4)=cast(DATEPART(yyyy, getdate()) as varchar) then max(dr)+1 else '441581'+cast(DATEPART(yyyy, getdate()) as varchar) +'000001' end<br>这句语句出现“聚合不应出现在 UPDATE 语句的集合列表中。”错误不知道那里错了???麻烦大家帮忙看看