T
T
TallY02092020-11-11 18:18:56
Oracle
TallY0209, 2020-11-11 18:18:56

How to declare a global variable in a package?

In the package, you need to declare a global variable, which later must be used in the trigger to count the number of changes in the table

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2020-11-12
@idShura

You can read more on the Tom Kyte forum

create or replace package inte
as
  c_exact  constant number := 0.99;
end;

 
create or replace trigger t_trigger
before insert on t for each row
begin
        if ( :new.x >= inte.c_exact )
        then
           null;
        end if;
end;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question