Professional Documents
Culture Documents
Department of Information Technology Academic Year: 2019-2020 Semester: III Class/Branch: SEIT Subject: SQL Lab
Department of Information Technology Academic Year: 2019-2020 Semester: III Class/Branch: SEIT Subject: SQL Lab
Experiment No. 7
2. Theory:-
A cursor allows to iterate a set of rows returned by a query and process them accordingly.
Cursors can be created inside a stored procedure to handle the result set returned by a query.
Mysql cursors are read-only and non-scrollable. Cursors process the results set of returned by a
query row by row.
Before implementing the new curosr first check whether any procedure of same name already
exist not , if it does then drop it firstly and then execute the new one.
Dropping the procedure:
syntax:
drop procedure proc_emp;
syntax: