Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: trigger and updates
Mark D Powell wrote:
> > On Jan 29, 12:35 pm, "cptkirkh" <k..._at_scic.com> wrote:
> > You have a pl/sql variable named FIELD and a table column FIELD. It > would appear that the parser is having difficulty telling which one > you are trying to reference. You can find the variable scope rules > defined in the PL/SQL manual for your version. > > I suggest you prefix or suffix your pl/sql variable names so that the > pl/sql variable names and table column names are not identical. > > HTH -- Mark D Powell --
It is worse than that:
The following are reserved words:
FIELD
ID
NEW
OLD
and '01-JAN-1901' is not a date ... it is a string and the OP is relying
on implicit conversion which is best practice either.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Mon Jan 29 2007 - 13:13:51 CST