SlideShare a Scribd company logo
Source Code for inserting multiple records  
DECLARE 
  i NUMBER; ‐‐ Loop Counter 
BEGIN 
  ‐‐Go to the tabular datablock for inserting students   
  GO_BLOCK('student_insert_b'); 
   
  ‐‐Put the cursor on the first row of the tabular datablock 
  FIRST_RECORD; 
  ‐‐Start simple loop 
  LOOP 
    ‐‐Insert data   
insert into student 
values :STUDENT_INSERT_B.STUDENT_ID, :STUDENT_INSERT_B.STUDENT_NAME,  
:STUDENT_INSERT_B.EMAIL,:STUDENT_INSERT_B.YEAR); 
    ‐‐Save data 
    FORMS_DDL('COMMIT'); 
    ‐‐Put the cursor to the next row 
    NEXT_RECORD; 
  ‐‐Set the exit criteria, exit loop when the next row is blank 
  EXIT WHEN :STUDENT_INSERT_B.STUDENT_ID IS NULL; 
  END LOOP; 
  ‐‐Put the cursor to the first row 
  FIRST_RECORD; 
  ‐‐Display a message 
  message('Students insertion is done'); 
END; 
   

More Related Content

PPT
Presentation on structure,functions and classes
PDF
Exercise2(database)
PDF
cltv calculation-calyx corolla
PDF
EVC exercise-odi case
PDF
jones blair calculations
PDF
Class+3+ +quantitative+analysis+exercise+answer+key
PDF
CLTV exercise-Instyle
PDF
EVC exercise-novel motor oil
Presentation on structure,functions and classes
Exercise2(database)
cltv calculation-calyx corolla
EVC exercise-odi case
jones blair calculations
Class+3+ +quantitative+analysis+exercise+answer+key
CLTV exercise-Instyle
EVC exercise-novel motor oil

Viewers also liked (20)

DOCX
Quantitative exercise-toasty oven
PDF
Source code for view details(database)
PDF
Source codes for alerts lovs and reports generation(database)
PDF
Exercise4(database)
DOC
Subnet questions with ans(networking)
PDF
Exercise3(database)
PDF
Exercise1(database)
PDF
Souce code of validation trigger examples(database)
PDF
Exercise5(database)
PDF
Solution4 1(database)
PDF
Exercise6(database)
PPTX
Solution6(database)
PDF
Source code for search engine(database)
PPTX
Database fundamentals(database)
PPTX
Solution5(database)
PPTX
Solution1(database)
PDF
database design intro(database)
PPTX
Solution4(database)
PPTX
Solution3(database)
PPTX
Solution2(database)
Quantitative exercise-toasty oven
Source code for view details(database)
Source codes for alerts lovs and reports generation(database)
Exercise4(database)
Subnet questions with ans(networking)
Exercise3(database)
Exercise1(database)
Souce code of validation trigger examples(database)
Exercise5(database)
Solution4 1(database)
Exercise6(database)
Solution6(database)
Source code for search engine(database)
Database fundamentals(database)
Solution5(database)
Solution1(database)
database design intro(database)
Solution4(database)
Solution3(database)
Solution2(database)
Ad

More from welcometofacebook (20)

PDF
consumer behavior(4210)
PDF
competing in a global market(4210)
PDF
promotion strategies(4210)
PDF
pricing strategies(4210)
PDF
PDF
distribution strategies calyx and corolla(4210)
PDF
distribution strategies(4210)
PDF
the birth of swatch(4210)
PDF
product and brand strategies(4210)
PDF
stp case jones blair(4210)
PDF
PDF
situational analysis(4210)
PDF
quantitative analysis(4210)
PDF
overview of marketing strategy(4210)
PPT
Final exam review answer(networking)
PPT
Midterm review questions ans(networking)
PPT
IP adress and routing(networking)
PPT
TCP/IP(networking)
PPT
Layer 2 switching fundamentals(networking)
PPT
Common types of networks(networking)
consumer behavior(4210)
competing in a global market(4210)
promotion strategies(4210)
pricing strategies(4210)
distribution strategies calyx and corolla(4210)
distribution strategies(4210)
the birth of swatch(4210)
product and brand strategies(4210)
stp case jones blair(4210)
situational analysis(4210)
quantitative analysis(4210)
overview of marketing strategy(4210)
Final exam review answer(networking)
Midterm review questions ans(networking)
IP adress and routing(networking)
TCP/IP(networking)
Layer 2 switching fundamentals(networking)
Common types of networks(networking)
Ad

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
PPT on Performance Review to get promotions
PPTX
Lecture Notes Electrical Wiring System Components
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Sustainable Sites - Green Building Construction
PPTX
Welding lecture in detail for understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Internet of Things (IOT) - A guide to understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT on Performance Review to get promotions
Lecture Notes Electrical Wiring System Components
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Sustainable Sites - Green Building Construction
Welding lecture in detail for understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Strings in CPP - Strings in C++ are sequences of characters used to store and...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Embodied AI: Ushering in the Next Era of Intelligent Systems
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Internet of Things (IOT) - A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

Source code for insert multiple rows(database)

  • 1. Source Code for inserting multiple records   DECLARE    i NUMBER; ‐‐ Loop Counter  BEGIN    ‐‐Go to the tabular datablock for inserting students      GO_BLOCK('student_insert_b');        ‐‐Put the cursor on the first row of the tabular datablock    FIRST_RECORD;    ‐‐Start simple loop    LOOP      ‐‐Insert data    insert into student  values :STUDENT_INSERT_B.STUDENT_ID, :STUDENT_INSERT_B.STUDENT_NAME,   :STUDENT_INSERT_B.EMAIL,:STUDENT_INSERT_B.YEAR);      ‐‐Save data      FORMS_DDL('COMMIT');      ‐‐Put the cursor to the next row      NEXT_RECORD;    ‐‐Set the exit criteria, exit loop when the next row is blank    EXIT WHEN :STUDENT_INSERT_B.STUDENT_ID IS NULL;    END LOOP;    ‐‐Put the cursor to the first row    FIRST_RECORD;    ‐‐Display a message    message('Students insertion is done');  END;