How to start auto increment value from certain value in mysql or Change default value for auto increment field mysql table

 

Q> How to start auto increment value from certain value in mysql ??
                                     or
Change default value for auto increment field mysql table

Solution 1:  Execute query:   ALTER TABLE TABLE_NAME AUTO_INCREMENT = 2000;
  

Solution 2: From Picture  

  • Go to localhost/phpmyadmin

     


  • Select your database and table. At top right: click on "Operations". 



  • Then you can see AUTO_INCREMENT field. Just change it. Default is 1.




 

Tag: auto increment, value, change default, new start, point mysql, phpmyadmin,

Comments

Popular posts from this blog

Puppetting on string | Let us C solution with details description and tutorials | yashwant kanetkar

If cost price and selling price of an item is input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred