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,它不允许设置任何超过 255 的值。我应该如何解决这个问题?可以设置的值越高,对我来说就越好:)
看起来您使用TINYINT(4) UNSIGNED,在这种情况下最大值为 255。尝试更改 ID 列的类型,例如 -
TINYINT(4) UNSIGNED
ALTER TABLE table CHANGE COLUMN id id INT(11) UNSIGNED NOT NULL;