Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Trigger Code
Redd wrote:
> --
> javatek?@usa.com
>
> remove the ? to reply.
> "Mark C. Stock" <mcstockX_at_Xenquery .com> wrote in message
> news:PfWdnc-muMypasHdRVn-gQ_at_comcast.com...
>
>>| Quantity Integer >>| OldQuantity Integer >>| OnOrder Char >>| >>| >>| Does anyone know how to write the trigger that on update >>| if Quantity is equal to or less than OldQuantity write the >>| Character "T" to the OnOrder field. >>| >>| >>| >>| >> >>use a 'before update ... for each row' trigger with a 'when' condition
>>compares the oldquantity and new quantity, and assign the value 'T' to >>onorder
What you appear to want is for someone to do your school work for you. Hopefully no one will.
If you want to see examples go to:
http://www.psoug.org/reference/library.html
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Sun Mar 21 2004 - 13:56:59 CST