Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像那样从 001,002,003 开始我的列自动递增..请告诉我该怎么做..
使用 phpMyadmin。
1. ID 2. 001 3. 002 4. 003 5. . 6. . 7. . like above shown..
使用列的ZEROFILL属性。
尝试这个:
ALTER TABLE tableName CHANGE `columnName` `columnName` INT(3) ZEROFILL;