mysql: populate column with autoincrement values By Ricardo MallaAugust 16, 2021uncategorized SET @my_increment := 0; UPDATE linkedin_companies_to_analyze SET id = @my_increment := @my_increment + 1 ORDER BY date_created;