Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> what's wrong with this trigger?
I have a field that I would like to contain the upper case value of
another field.
If a user changes the value of my 'customer_name field', I would like to have the new value, in upper case, written to the 'customer_name_idx' field. (This is done because I use the customer_name_idx field for doing faster searches)
A trigger something like the following (preferably one that actually works though):
...
begin
if updating then
update customers set customer_name_idx=upper(:new.customer_name);end if;
Troy Perchotte Received on Wed Aug 19 1998 - 18:38:24 CDT
![]() |
![]() |