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.
请参阅下面的屏幕截图。请注意,插入语句将 trade_id 列为 4404689907。随后的 select 将 trade_id 列为 2147483647。有人知道这里发生了什么吗?
您在有符号 INT 中的列,其中包含高达 2147483647 的整数。您的值显然大于此值。即使是无符号的 INT 也只能保存一个高达 4294967295 的值。您需要为该数据使用 BIGINT。
请参阅整数类型(精确值)