Does anyone know how can I update the data row by row by the loop after insert those records into another table in mssql?
Example: I have the following table (tableA)
ID    Name    is_Feeded
1     Alvin   0
2     Ben     0
3     Lee     1
4     David   0
I want to insert those table from tableA to tableB then update the column is_Feeded to 1 in tableA through a loop?
Anyone know how can I do it in mssql?
 
     
     
     
     
    