CBSE Class 12 Informatics Practices Triggers Notes

Informatics Practices Concept Notes for Class 12: Triggers

Access comprehensive revision notes for Triggers using the CBSE Class 12 Informatics Practices Triggers Notes. Designed to align with the 2026-27 academic syllabus for Class 12 Informatics Practices, these concept summaries help students streamline their exam preparation and review complex topics efficiently.

Download Triggers Revision Notes PDF

View or download the dedicated Triggers revision resource below. Engaging with these structured concept notes daily ensures continuous academic progress and mastery of the 2026-27 curriculum for Informatics Practices.

,sans-serif;">syntax :

ALTER TRIGGER trigger_name DISABLE;

For example:

ALTER TRIGGER orders_before_insert DISABLE;

Drop a Trigger

syntax :

DROP TRIGGER trigger_name;

For example:

DROP TRIGGER orders_before_insert;

Example:

create or replace trigger check_budget_EMP

after insert or update of SAL, DEPTNO on EMP

declare

cursor DEPT_CUR is select DEPTNO, BUDGET from DEPT;

DNO DEPT.DEPTNO%TYPE;

ALLSAL DEPT.BUDGET%TYPE;

DEPT_SAL number;

begin

open DEPT_CUR;

loop

fetch DEPT_CUR into DNO, ALLSAL;

exit when DEPT_CUR%NOTFOUND;

select sum(SAL) into DEPT_SAL from EMP where DEPTNO = DNO;

if DEPT_SAL > ALLSAL then

raise_application_error(-20325, 'Total of salaries in the department '|| to_char(DNO) || ' exceeds

budget');

end if;

end loop;

close DEPT_CUR;

end; /

More about triggers :

Triggers are not exclusively used for integrity maintenance. They can also be used for

• Monitoring purposes, such as the monitoring of user accesses and modifications on certain sensitive

tables.

• Logging actions, e.g., on tables: Contd..

create trigger LOG EMP

after insert or update or delete on EMP

begin

if inserting then

insert into EMP LOG values(user, ’INSERT’, sysdate); end if ;

if updating then

insert into EMP LOG values(user, ’UPDATE’, sysdate); end if ;

if deleting then

insert into EMP LOG values(user, ’DELETE’, sysdate); end if ;

end;

By using a row trigger, even the attribute values of the modified tuples can be stored in the table EMP LOG.

• automatic propagation of modifications. For example, if a manager is transferred to another department, a trigger can be defined that automatically transfers the manager’s employees to the new department.

More about Triggers

If a trigger is specified within the SQL*Plus shell, the definition must end with a point “.” in the last line. Issuing the command run causes SQL*Plus to compile this trigger definition.

A trigger definition can be loaded from a file using the command @. Note that the last line in the file must consist of a slash “/”.

A trigger definition cannot be changed, it can only be re-created using the or replace clause.

The command drop deletes a trigger.

After a trigger definition has been successfully compiled, the trigger automatically is enabled.

The command alter trigger disable is used to deactivate a trigger. All

triggers defined on a table can be (de)activated using the command

alter table enable | disable all trigger;

The data dictionary stores information about triggers in the table USER TRIGGERS. The information includes the trigger name, type, table, and the code for the PL/SQL block.

Difference b/w For and Do Loops: When No. of repetitions are known then For loop is used, and if the No. of iterations are unknown then do loops are used.

Please click the link below to download pdf file for CBSE Class 12 Informatics Practices Triggers Study Notes

Study Material and Revision Notes for Class 12 Informatics Practices Triggers

Quick Revision Notes: Triggers (CBSE)

Access structured revision notes for Triggers designed in alignment with the latest CBSE curriculum for Class 12 Informatics Practices. These summaries help clarify core themes and support effective daily study.

Expert Study Material for Class 12 Informatics Practices

Built using the official NCERT book for Class 12 Informatics Practices, these notes provide reliable academic guidance. Pair your summary review with our recommended NCERT solutions to master optimal problem-solving approaches.

Complete Your Chapter Revision

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

Where can I download the latest PDF for CBSE Class 12 Informatics Practices Triggers Notes?

You can download the teacher prepared revision notes for CBSE Class 12 Informatics Practices Triggers Notes from StudiesToday.com. These notes are designed as per 2026-27 academic session to help Class 12 students get the best study material for Informatics Practices.

Are these Informatics Practices notes for Class 12 based on the 2026 board exam pattern?

Yes, our CBSE Class 12 Informatics Practices Triggers Notes include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Informatics Practices principles which is important for getting more marks in 2026 CBSE exams.

Do these Class 12 notes cover all topic-wise concepts for Informatics Practices?

Yes, our CBSE Class 12 Informatics Practices Triggers Notes provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of CBSE syllabus in Class 12 is covered.

How can I use CBSE Class 12 Informatics Practices Triggers Notes for quick last-minute revision?

These notes for Informatics Practices are organized into bullet points and easy-to-read charts. By using CBSE Class 12 Informatics Practices Triggers Notes, Class 12 students fast revise formulas, key definitions before the exams.

Is there any registration required to download Class 12 Informatics Practices notes?

No, all study resources on StudiesToday, including CBSE Class 12 Informatics Practices Triggers Notes, are available for immediate free download. Class 12 Informatics Practices study material is available in PDF and can be downloaded on mobile.