CBSE Class 12 Informatics Practices Iteration And Cursors

Read and download CBSE Class 12 Informatics Practices Iteration And Cursors in NCERT book for Class 12 Informatics Practices. You can download latest NCERT eBooks chapter wise in PDF format free from Studiestoday.com. This Informatics Practices textbook for Class 12 is designed by NCERT and is very useful for students. Please also refer to the NCERT solutions for Class 12 Informatics Practices to understand the answers of the exercise questions given at the end of this chapter

NCERT Book for Class 12 Informatics Practices Iteration And Cursors

Class 12 Informatics Practices students should refer to the following NCERT Book Iteration And Cursors in Class 12. This NCERT Book for Class 12 Informatics Practices will be very useful for exams and help you to score good marks

Iteration And Cursors NCERT Book Class 12

 

Chapter – 2

Iteration And Cursors

EXITWHEN Cond;

is shorthand for

IF Cond THEN EXIT; END IF;

Loops can be named to allow multi-level exits

<<outer>>LOOP

    ___

     <<inner>>LOOP

     ____ EXIT outer WHEN i > 100; ___

END LOOP;

___

END LOOP;

Cursors:

A cursor is a variable that can be used to access the result of a particular SQL query. Cursors can move sequentially from row to row (cf. file pointers in C).

Every SQL query statement in PL/SQL has an implicit cursor. It is also possible to declare and manipulate cursors explicitly:

DECLARE

     CURSOR e IS

     SELECT * FROM Employees

      WHERE salary > 30000.00;

BEGIN

Cursors provide flexibility in processing rows of a query.

Simplest way to deal with a cursor is to loop over all rows using a FOR loop:

DECLARE

    CURSOR e IS

   SELECT * FROM Employees

    WHERE salary > 30000.00;

    total INTEGER := 0;

BEGIN

FOR emp IN e LOOP

     total := total + emp.salary;

END LOOP;

    dbms_output.put_line( 'Total Salaries: ' || total);

END;

Cursor loop variables are implicitly declared as the ROWTYPE for the SELECT result.

E.g. emp is implictly declared as Employees%ROWTYPE.

The cursor FOR loop is convenient shorthand for iteration implemented using the basic cursor operations:

-- assume declarations as before

OPEN e;

LOOP

     FETCH e INTO emp;

    EXITWHEN e%NOTFOUND;

     total := total + emp.salary;

END LOOP;

CLOSE e;

___


Please refer to attached file for CBSE Classs 12 Informatics Practices Iteration And Cursors

NCERT Book Class 12 Informatics Practices Iteration And Cursors

The above NCERT Books for Class 12 Informatics Practices Iteration And Cursors have been published by NCERT for latest academic session. The textbook by NCERT for Iteration And Cursors Informatics Practices Class 12 is being used by various schools and almost all education boards in India. Teachers have always recommended students to refer to Iteration And Cursors NCERT etextbooks as the exams for Class 12 Informatics Practices are always asked as per the syllabus defined in these ebooks. These Class 12 Iteration And Cursors book for Informatics Practices also includes collection of question. Along with Informatics Practices Class 12 NCERT Book in Pdf for Iteration And Cursors we have provided all NCERT Books in English Medium for Class 12 which will be really helpful for students who have opted for english language as a medium. Class 12 students will need their books in English so we have provided them here for all subjects in Class 12.

Where can I download latest NCERT Book for Class 12 Informatics Practices Iteration And Cursors

You can download the NCERT Book for Class 12 Informatics Practices Iteration And Cursors for latest session from StudiesToday.com

Can I download the NCERT Books of Class 12 Informatics Practices Iteration And Cursors in Pdf

Yes, you can click on the link above and download chapter wise NCERT Books in PDFs for Class 12 for Informatics Practices Iteration And Cursors

Are the Class 12 Informatics Practices Iteration And Cursors NCERT Book available for the latest session

Yes, the NCERT Book issued for Class 12 Informatics Practices Iteration And Cursors have been made available here for latest academic session

How can I download the Class 12 Informatics Practices Iteration And Cursors NCERT Book

You can easily access the link above and download the Class 12 NCERT Books Informatics Practices Iteration And Cursors for each chapter