The problem i'm dealing with is follow :
I have a table students with name and surname. I create a new table Students2, and i want to fill this table with names and surnames from the first table with cursor.
I make the declare of the cursor, the select part, but in the LOOP PART, i don't understand how you fetch the values. For example, if I do:
FETCH name_surname INTO Students2.name,Students2.surname
it doesn't work, and I don't know how to fix it.
In name_surname I mention, I Selected the name and surname from the first table.