Assignment 6
Assignment 6
Assignment 6
Roll No : SI-28
Subject : DBMS
Assignment 06
Write and execute PL/SQL stored procedure and function to perform a suitable task on the
database. Demonstrate to use.
mysql> insert into student values(3, 'Savim', 20040818), (4, 'Vinit', 20040321);
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0
+ + +
+ 4 rows in set (0.00 sec)
mysql> delimiter $
mysql> create procedure my_pro()
-> select stu_id, student_name from student
-> $
Query OK, 0 rows affected (0.08 sec)
+ + +
4 rows in set (0.01 sec)