Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: automatic update of a variable in pl/sql

Re: automatic update of a variable in pl/sql

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 23 Mar 2005 06:02:43 -0800
Message-ID: <1111586563.699759.155920@l41g2000cwc.googlegroups.com>


Laura, if I understand your question correctly the short answer is NO. You cannot directly tie a pl/sql variables value to a table column value so that the pl/sql variable value dynamically changes when the table column value changes. All pl/sql variables have a session state so that different sessions running the same code at the same time can have different values for the same variables.

If you explain what it is you are trying to do someone may be able to provide a solution.

If you just need the new value of a table column when it changes you may be able to pass it from a table trigger to the stored code routine: package, procedure, or function that is then executed or you might be able to set a system context variable that the code in question references. But how you solve your problem depends on exactly what it is you are tying to do.

HTH -- Mark D Powell -- Received on Wed Mar 23 2005 - 08:02:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US