A row value can be assigned to a variable of type row by using a SELECT INTO statement, a VALUES INTO statement, or a FETCH INTO statement. The field values of the source row value must be assignable to the field values of the target row variable.
SELECT * FROM employee
INTO empRow
WHERE id=5;
If the select query resolves to more than one row value,
an error is raised. VALUES (5, 'Jane Doe', 10000) INTO empBasics;
FETCH cur1 INTO empRow;
Other variations of use are possible with each of these statements.