A FETCH statement positions an SQL cursor on a specified row of a table and retrieves values from that row by placing them into the variables in a target list.
The FETCH statement in this example retrieves values from cursor c1 into the CourseName variable. The Positioned
UPDATE statement in this example updates the row for Modern European History (HIS 305) in the Course table in the DEMODATA sample database: