3

I want to start my auto incrementation of column from 001,002,003 like that ..plz tell me how to do that..

Using phpMyadmin.

 1. ID
 2. 001
 3. 002
 4. 003
 5. .
 6. .
 7. .
 like above shown..
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
sudhakar phad
  • 191
  • 1
  • 3
  • 12

1 Answers1

9

Use ZEROFILL attribute of column.

Try this:

ALTER TABLE tableName CHANGE `columnName` `columnName` INT(3) ZEROFILL; 
Saharsh Shah
  • 28,687
  • 8
  • 48
  • 83