Disable olaraqdan Trigger olushdurma


Menim bildiyim qederiyle Oracle 11g den once gelen oracle versionlarda  Trigger olushdurulduqdan sonra:

ALTER TRIGGER trigger_name DISABLE;

Komandasi ile yaratmish oldugumuz Triggeri disable ede bilirik.

Amma Trigger yaratdigimiz zaman  – o triggeri default olaraqdan DISABLE olaraqdan yara bilirikmi? Beli bilirik. Bu ozellik Oracle 11g ile birlikde gelmshdir.

Misal uchun:

CREATE OR REPLACE TRIGGER  ANAR_TRG
BEFORE INSERT ON ANAR
FOR EACH ROW
DISABLED   
BEGIN
:NEW.DATE :=SYSDATE;
END;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: