更新工資的時(shí)候?yàn)槭裁匆褂霉鈽?biāo)
在存儲(chǔ)過程中,begin和end之間直接寫三個(gè)update語句不可以嗎?
begin
update emp set sal=sal+400 where job='a';
update emp set sal=sal+800 where job='b';
end;
這樣寫不可以嗎
在存儲(chǔ)過程中,begin和end之間直接寫三個(gè)update語句不可以嗎?
begin
update emp set sal=sal+400 where job='a';
update emp set sal=sal+800 where job='b';
end;
這樣寫不可以嗎
舉報(bào)
2018-11-21
也沒有說一定要用光標(biāo)吧,只是拿了個(gè)例子講了一下而已吧,也沒有說你這樣不行