How Can I Add Id Numbers To An Existing Database

Discussion in 'MySQL' started by hasanoben, Feb 15, 2013.

  1. #1
    Hello, currently i have like 10-20 rows in my database.. It's okay, I can add the numbers manually but when it comes to 1000s I won't be able to add like that.
    So my question is that I want the code that will add the number each time a new row created.
    Is is possible?
    Thanks
     
    Solved! View solution.
    hasanoben, Feb 15, 2013 IP
  2. #2
    Add a column that's auto_increment.
     
    Rukbat, Feb 16, 2013 IP