关于值班管理的数据库存储过程
时间:2007-12-23 来源:不详 作者:迈克DB
Begin
--rollback tran
set @msg='error3'
return
end 本文来自织梦
end
set @i=@i 1
fetch next from cur_watchingperson3 into @PersonID
-- 假如超出边界 回头队列第一位
if @@fetch_status=-1
fetch first from cur_watchingperson3 into @PersonID
end 本文来自织梦
Close cur_watchingPerson3
deallocate cur_watchingPerson3 本文来自织梦
commit tran
织梦好,好织梦
以上为队列改变时生成新值班安排的存储过程 copyright dedecms
其他 诸如 规定假期 调整人员 大同小异 欢迎批评指正 本文来自织梦
文章评论
共有位Admini5网友发表了评论 查看完整内容