0
create procedure wfhnxtmth
(in inYear int,
in inMonth int)
begin
FOR week AS
SELECT week FROM calendar WHERE month = inMonth
DO
INSERT INTO calname
(id,year,month,week,monstat,tuestat,wedstat,thustat,fristat,pager)
SELECT id, inYear, inMonth, week, 'IN', 'IN', 'IN', 'IN', 'IN', 'N'
FROM name;
END FOR;
end
这将编译一个在DB2罚款运行。 – MikeyD
请分享错误,所以我们可以得到一个更好的洞察问题 – qre0ct
它不喜欢为我输入的语法。 – MikeyD