Batch update the value of a field in a table by using a cursor. sql