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 时,我只是将其声明为UNSIGNED INT,但是这种 ID 的最大值是多少?我怎么知道?我正在使用 mysql 服务器,但我认为获得所有平台的答案会很有用。如果我做错了,应该使用什么样的 id 来代替?
对于 UNSIGNED INT 中的 MySQL 最大值,可以存储为 4294967295。
看看MySQL 中的整数存储