Check out example codes for "mysql add auto increment id existing table". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE `users` ADD `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY

Learn ReactJs, React Native from akashmittal.com