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.
我想按升序将用户 ID 插入表中。所以我想做这样的事情:
insert last insert+1
谁能帮我?
在 phpmyadmin 中,有一个选项“检查”字段为auto_incremented. 您不必插入 ID,因为它会在插入其他数据时自动插入。
auto_incremented
请注意,ID 列需要是主键!!!