Hi,
If you are so keen on the trigger, I think this can help.
create or replace trigger inv
before insert on inventory
for each row
begin
select description,price into :new.description,:new.pric
where itemid = :new.itemid;
exception
WHEN OTHERS THEN
dbms_output.put_line('erro
end;
/
bala.
Main Topics
Browse All Topics





by: MikeOM_DBAPosted on 2002-10-17 at 11:25:06ID: 7341754
Why not just do the following in your application?:
update inventory
set description = :p_desc, price = :p_price
where itemid = :p_itemid;