如表table 表中的一列为Engish 我要对English的项都相加。请问高手怎么写呢?
帮我看看这个SQL存储过程,哪里不对了!运行正确!
create procedure Getsql
as
begin
declare @people int
Set @people=(select sum(people) from smessage where city='苏州')
update instance set people=@people where city='苏州'
end
------------
我现在的问题是,从表instance中,没有得到任何信息.