Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Store Procedure Help
Aaron Rouse wrote:
> Thanks for the help and that is correct on the MAX() function is not
> needed. That query was originally given to me in the spec and today I
> noticed it was unneeded. I had tried the fetch in one form or another
> yesterday, I honestly can not remember if it was a exact copy in
> syntax as was shown, regardless it would end up erroring out. The
> method that did end up working for me is this:
>
[snip code]
Just one caveat, Aaron. I don't know who will be calling your procedure, but with all those COMMIT statements, they might have a problem.
Suppose their development design is such:
Well, a COMMIT is global ... when you commit in Step 3, you negate the user's ability to rollback in Step 4. This can be corrected by making your procedure an autonomous transaction - which just commits what's in the transaction (your procedure stuff) and leaves the user's data on the form alone. Received on Fri Jan 10 2003 - 17:13:38 CST