Cursor Examples.txt

  • Uploaded by: Mohammad Mizanur Rahman Nayan
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Cursor Examples.txt as PDF for free.

More details

  • Words: 59
  • Pages: 1
DELIMITER $$ CREATE PROCEDURE cursor_test() BEGIN DECLARE venrollmentSemesterId int(20); DECLARE vstudentId int(20); DECLARE cursor1 CURSOR FOR select enrollmentSemesterId,studentId from vmin_date_registration; OPEN cursor1; read_loop: LOOP FETCH cursor1 INTO venrollmentSemesterId,vstudentId; IF done THEN LEAVE read_loop; END IF; BEGIN update studentcharges set semesterId=venrollmentSemesterId where studentId=vstudentId; END; END LOOP; CLOSE cursor1; END$$ ----------CALL cursor_test(); ERROR 1054 (42S22): Unknown column 'done' in 'field list'

Related Documents

Cursor.
June 2020 16
Cursor
April 2020 15
Cursor Handling
November 2019 32
Cursor 1
October 2019 24
Cursor Examples.txt
November 2019 23
Db2 Cursor
November 2019 23

More Documents from ""

Sravan Oracledba.docx
November 2019 18
Cursor Examples.txt
November 2019 23
Solver File.xlsx
November 2019 14
Process.docx
December 2019 15