I added an empty column to a table and now I want to insert sequential numbers to its rows. Is it possible to do it using SQL?
Run the following queries to have incremented value in yourField column:
yourField
SELECT @i:=0; UPDATE yourTable SET yourField = @i:=@i+1;