bigint unsigned
时间: 2023-09-07 12:16:14 浏览: 161
shenfenyanzheng.rar_Unsigned
引用\[1\]:BIGINT UNSIGNED 是 MySQL 中一种无符号的整数数据类型,使用 8 个字节(64 位)存储。它的取值范围是从 0 到 18,446,744,073,709,551,615(2^64-1),即最大值为无符号 64 位整数的最大值。与普通的 BIGINT 类型不同,BIGINT UNSIGNED 类型不能存储负数,因此可以用于存储只有正整数的数据,例如 IP 地址、端口号等。\[1\]
问题:bigint unsigned是什么?
回答: BIGINT UNSIGNED 是 MySQL 中一种无符号的整数数据类型,它的取值范围是从 0 到 18,446,744,073,709,551,615(2^64-1),即最大值为无符号 64 位整数的最大值。与普通的 BIGINT 类型不同,BIGINT UNSIGNED 类型不能存储负数,因此可以用于存储只有正整数的数据,例如 IP 地址、端口号等。\[1\]
#### 引用[.reference_title]
- *1* [【小5聊】Mysql基础之bigint和bigint unsigned的区别](https://blog.csdn.net/lmy_520/article/details/122475907)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [数据相减时出现错误:BIGINT UNSIGNED value is out of range](https://blog.csdn.net/caishijian2008/article/details/128470161)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [MySQL BIGINT UNSIGNED value is out of range... 的问题和解决](https://blog.csdn.net/ClementAD/article/details/47280649)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文