Cursors in PL/SQL
Cursors in PL/SQL
----------------------------------------------------------
Normally when we use functions and procedures in PL/SQL we return a single value.
Normally when we use pl/SQL program, functions, procedures we deal with single row output.
When we required multiple records cursor comes into the picture. Cursor return records one by one to the user.
#--------------------------------------------------------------------------
4 parts are there of the cursor.
1)declare cursor
2)open cursor
3)fetch records
4)close cursor
#cursor in plsql
----------------------------------------------------------
Normally when we use functions and procedures in PL/SQL we return a single value.
Normally when we use pl/SQL program, functions, procedures we deal with single row output.
When we required multiple records cursor comes into the picture. Cursor return records one by one to the user.
#--------------------------------------------------------------------------
4 parts are there of the cursor.
1)declare cursor
2)open cursor
3)fetch records
4)close cursor
#cursor in plsql
Comments
Post a Comment