I wrote the following PL/SQl block to gather 2 columns (Make, Model) from one table
I wrote the following PL/SQl block to gather 2 columns (Make, Model) from one table (OLTP_VEHICLES).
DECLARE
2 CURSOR descrips
3 IS
4 SELECT make, model
5 FROM oltp_vehicles;
6 veh descrips%ROWTYPE;
7 BEGIN
8 OPEN descrips;
9 FETCH descrips INTO veh;
10 CLOSE descrips;
11 END;
12 /
How do I use a cursor in a loop to insert the results into another column (“Description”) in another table (VEHICLES)?