I have a table called Student_Details, which contains the following columns:
ID, Roll_No, Student_Name, Student_Address, Student_Class.
ID is the main key.
I have a problem when each studentโs record is split into two lines.
For example, the first line contains:, 1, 20, john, '', ''and the second
'2', '', '', 'ABCDEFG', 'A'.
I want to update the data in Student_Addressand the Student_Class
fields in the row with the identifier 1from the data in the row 2, and then delete the row 2. The result in the example will be 1,20,'john',
'ABCDEFG', 'A'.
Is there any way to do this? I do not want to use a cursor because the database has about 50,000 rows.
John source
share