SQL求解 必须是批处理中仅有的语句

2025-02-01 19:51:49
推荐回答(1个)
回答1:

初始化 set @a=0 看看如何?

select @pos=pos, @A=COUNT(监督员
) from Employee WHERE POs='监督员'
group by pos