For example I have a table with 2 columns, first_name and last_name with these values
first_name
last_name
Ali Khani Elizabette Amini Britn
DECLARE @id INT SET @id = 0 UPDATE cartemp SET @id = CarmasterID = @id + 1 GO