Practice Lab#9
Practice Lab#9
Practice Lab#9
Date: 16/11/22
You have to upload the screen shot (black screen) of output with the queries one by one, in a word
doc & file name must be->Roll No _PracticeLab#9.
1. Write a PL/SQL block to Create an explicit cursor to display the details of all students’s
ROW BY ROW
2. Write a PL/SQL block to Create an explicit cursor to display the name by passing the
S_ID, if given S_ID does not exist in the record, it will just display an Error Message
“Sorry: This record was not found”. (FOR NOT FOUND scenario)
Transaction:
Transaction is very important concept, before starting the transaction you must be aware of
ACID properties. I am briefing the acid properties, (though you have done in the class).
1. Delete one record from student table (without starting the transaction) and rollback it.
2. Start the transaction & delete one record and perform rollback operation.
3. Now open one more mysql command line window. Access the same table in both the
command line screen’s and execute below mention statements(Make auto-commit off
in both the screen’s & don’t forget to start transaction every time in every
screen/session):