All 8 subjects, as per the latest syllabus. Revised 2026.
PLSQL Practical Notes | B.Sc. (Information Technology) Semester 2 | Mumbai University | munotes
A munotes Edition munotes.in
PLSQL Practical
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 2
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in First Year
Contents
Module I PL/SQL Blocks, Variables, Control Structures, Cursors and Composite Types
- What PL/SQL Is, and Why SQL Alone Is Not Enough 1
- Setting Up: Installing Oracle, Connecting and Typing In the Lab Tables 5
- Your First Anonymous Block, and SET SERVEROUTPUT ON 10
- The Parts of a Block: DECLARE, BEGIN, EXCEPTION and END 15
- Variables and Constants: Declaring, Initialising and NOT NULL 20
- PL/SQL Data Types: NUMBER, VARCHAR2, CHAR, DATE, BOOLEAN and PLS_INTEGER 26
- %TYPE: A Variable That Takes Its Type From a Column 31
- Taking Input: Substitution Variables With & and DEFINE 34
- Bind Variables: VARIABLE, EXEC and PRINT 39
- Writing Executable Statements: Assignment, Operators and Expressions 43
- The Building Blocks of the Language: Identifiers, Literals, Delimiters and Comments 48
- SQL Functions Inside PL/SQL, and Converting Between Types 52
- Nested Blocks and Variable Scope 57
- SELECT INTO: Reading One Row Into Variables 60
- When SELECT INTO Finds No Row, or More Than One 63
- INSERT, UPDATE and DELETE From PL/SQL, and SQL%ROWCOUNT 66
- MERGE: Insert or Update in One Statement 69
- COMMIT, ROLLBACK and SAVEPOINT Inside a Block 72
- Sequences: What They Are and CREATE SEQUENCE 76
- NEXTVAL and CURRVAL, in SQL and in PL/SQL 80
- Gaps, ALTER SEQUENCE, DROP SEQUENCE, and Identity Columns 85
- Practical 1, Worked: Programs on Variables, Input and the Lab Tables 90
- Loops in PL/SQL: The Kinds There Are and What MU Calls Them 95
- The WHILE Loop 99
- The "Do Loop": The Basic LOOP With EXIT WHEN at the End 102
- The Numeric FOR Loop, and REVERSE 106
- Nested Loops, Loop Labels and CONTINUE 110
- GOTO, Labels and the NULL Statement 114
- Practical 2, Worked: Programs With Loops 117
- The IF Statement 121
- IF THEN ELSE 124
- The ELSIF Ladder 127
- NULL in a Condition: Three-Valued Logic 132
- The CASE Statement: Simple and Searched, and CASE_NOT_FOUND 138
- The CASE Expression, in PL/SQL and in SQL 144
- Practical 3, Worked: Programs With Conditions 149
- What a Cursor Is: The Work Area Behind Every SQL Statement 154
- The Implicit Cursor and Its Attributes 158
- The Explicit Cursor: DECLARE, OPEN, FETCH and CLOSE 162
- Explicit Cursor Attributes, and a Loop That Stops in the Right Place 166
- The Cursor FOR Loop 170
- The Parameterized Cursor 174
- FOR UPDATE and WHERE CURRENT OF 179
- Cursor Variables: REF CURSOR and SYS_REFCURSOR 184
- Practical 4, Worked: Programs With Cursors 188
- Composite Data Types: When One Variable Must Hold Many Values 192
- Records With %ROWTYPE 195
- User-Defined RECORD Types, and Records in INSERT and UPDATE 199
- Associative Arrays: INDEX BY Tables 203
- Nested Tables 206
- VARRAYs 209
- Collection Methods: COUNT, FIRST, LAST, NEXT, PRIOR, EXISTS, EXTEND, TRIM, DELETE and LIMIT 212
- Choosing a Collection, and the Errors Collections Raise 215
- Collections of Records 218
- BULK COLLECT and FORALL 224
- Collections Stored in Tables: Nested Table and VARRAY Columns 230
- Practical 5, Worked: Programs With Records and Collections 235
Module II Procedures, Functions, Triggers, Exceptions and Packages
- Named Blocks: What a Stored Subprogram Is 240
- Creating and Running a Procedure 244
- Procedure Parameters: IN, OUT and IN OUT 247
- Passing Parameters: Positional, Named and Mixed Notation, and DEFAULT 252
- When a Procedure Will Not Compile: SHOW ERRORS and USER_ERRORS 256
- Where a Subprogram Lives: USER_SOURCE, USER_OBJECTS, Recompiling and Dropping 260
- Procedures That Change Data, and Who Commits 263
- Local Subprograms, and One Procedure Calling Another 269
- Practical 6, Worked: Programs With Procedures 274
- Creating a Function: RETURN and Its Rules 279
- Calling a Function: From PL/SQL, From SQL and at the SQL Prompt 283
- What a Function Called From SQL May Not Do 287
- Recursive Functions: Factorial and Fibonacci 291
- Procedure or Function: How to Choose 295
- Practical 7, Worked: Programs With Functions 298
- What a Trigger Is, and When It Fires 303
- The Row Level Trigger: FOR EACH ROW, :NEW and :OLD 310
- BEFORE Row Triggers That Correct or Reject a Row 314
- AFTER Row Triggers: Keeping an Audit Trail 319
- INSERTING, UPDATING and DELETING, UPDATE OF and the WHEN Clause 324
- The Statement Level Trigger 328
- Row and Statement Triggers Together: The Order They Fire In 333
- The INSTEAD OF Trigger on a View 337
- The Mutating Table Error, and Compound Triggers 341
- Managing Triggers: Disabling, Enabling, Dropping and USER_TRIGGERS 345
- Triggers on Other Events: DDL and Database Events 349
- Practical 8, Worked: Programs With Triggers 356
- Exceptions: What Happens When a Block Fails 362
- The EXCEPTION Section, WHEN and WHEN OTHERS 366
- Oracle's Predefined Exceptions 370
- Naming an Oracle Error Yourself: PRAGMA EXCEPTION_INIT 374
- User-Defined Exceptions: Declare, RAISE and Handle 377
- RAISE_APPLICATION_ERROR 380
- SQLCODE and SQLERRM 386
- How an Exception Travels: Propagation and Re-raising 390
- Practical 9, Worked: Programs With Exceptions 396
- What a Package Is: Specification and Body 401
- Creating a Package: A First Specification and Body 405
- Public and Private Parts, and Package Variables That Remember 409
- Overloading: Two Subprograms With One Name 413
- The Initialisation Section, and Forward Declarations 417
- Oracle's Own Packages: DBMS_OUTPUT Up Close 421
- Managing Packages: USER_SOURCE, Recompiling and Dropping 425
- Practical 10, Worked: A Complete Package for the Lab Tables 432
Module J The journal and the practical examination
The chapters are locked
Get the notes to read all 106 chapters of this book.
Years 2017, 2018, 2019, 2022, 2023, 2025 and 2026
- Problem Solving Using Computer 1 year
- Web Designing 2 years
- Object Oriented Programming using C++ 2 years
PLSQL Practical, Major Practical - II, Fundamentals of Python Programming, Web Programming and Assembly Language Programming have no solved papers, so they are not included.
Already bought it? Sign in and it opens.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself for the same subject.