• <legend id='c1AZ7'><style id='c1AZ7'><dir id='c1AZ7'><q id='c1AZ7'></q></dir></style></legend>

    1. <i id='c1AZ7'><tr id='c1AZ7'><dt id='c1AZ7'><q id='c1AZ7'><span id='c1AZ7'><b id='c1AZ7'><form id='c1AZ7'><ins id='c1AZ7'></ins><ul id='c1AZ7'></ul><sub id='c1AZ7'></sub></form><legend id='c1AZ7'></legend><bdo id='c1AZ7'><pre id='c1AZ7'><center id='c1AZ7'></center></pre></bdo></b><th id='c1AZ7'></th></span></q></dt></tr></i><div id='c1AZ7'><tfoot id='c1AZ7'></tfoot><dl id='c1AZ7'><fieldset id='c1AZ7'></fieldset></dl></div>
      1. <small id='c1AZ7'></small><noframes id='c1AZ7'>

        • <bdo id='c1AZ7'></bdo><ul id='c1AZ7'></ul>

        <tfoot id='c1AZ7'></tfoot>
      2. MySQL:bigint 与 int

        MySQL: bigint Vs int(MySQL:bigint 与 int)
          <tbody id='yIgPz'></tbody>

                <legend id='yIgPz'><style id='yIgPz'><dir id='yIgPz'><q id='yIgPz'></q></dir></style></legend>

                • <bdo id='yIgPz'></bdo><ul id='yIgPz'></ul>
                • <tfoot id='yIgPz'></tfoot>
                  <i id='yIgPz'><tr id='yIgPz'><dt id='yIgPz'><q id='yIgPz'><span id='yIgPz'><b id='yIgPz'><form id='yIgPz'><ins id='yIgPz'></ins><ul id='yIgPz'></ul><sub id='yIgPz'></sub></form><legend id='yIgPz'></legend><bdo id='yIgPz'><pre id='yIgPz'><center id='yIgPz'></center></pre></bdo></b><th id='yIgPz'></th></span></q></dt></tr></i><div id='yIgPz'><tfoot id='yIgPz'></tfoot><dl id='yIgPz'><fieldset id='yIgPz'></fieldset></dl></div>

                  <small id='yIgPz'></small><noframes id='yIgPz'>

                  本文介绍了MySQL:bigint 与 int的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在使用 int(10) 并且刚刚注意到 Wordpress 使用 bigint(20) - 使用 bigint(20) 和 int(10) 进行 id 自动递增有什么不同?我应该为 id 列使用哪一个?

                  I have been using int(10) and just noticed that Wordpress uses bigint(20) - What is different to use bigint(20) and int(10) for id auto increment? Which one should I use for id column?

                  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
                  

                  对比

                  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
                  

                  谢谢.

                  推荐答案

                  区别纯粹在于可以存储的最大值(我相信 bigint(20) 为 18,446,744,073,709,551,615,int(10) 为 4,294,967,295),根据 MySQL 数值类型的详细信息手册页.

                  The difference is purely in the maximum value which can be stored (18,446,744,073,709,551,615 for the bigint(20) and 4,294,967,295 for the int(10), I believe), as per the details on the MySQL Numeric Types manual page.

                  顺便说一句,除非您使用 ZEROFILL,否则 (20) 和 (10) 的使用在很大程度上是无关紧要的.(即:它实际上并没有改变所存储数字的大小——这完全取决于类型.)

                  Incidentally, the use of (20) and (10) is largely irrelevant unless you're using ZEROFILL. (i.e.: It doesn't actually change the size of the number stored - that's all down to the type.)

                  但是,实际上应该注意的是,除非您是真正活跃的博主,否则您不太可能很快达到这些限制中的任何一个.

                  However, in practical terms it should be noted that you're not likely to hit either of these limits any time soon, unless you're a really active blogger.

                  这篇关于MySQL:bigint 与 int的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  MySQL cumulative sum grouped by date(按日期分组的 MySQL 累计总和)
                • <i id='pAjpH'><tr id='pAjpH'><dt id='pAjpH'><q id='pAjpH'><span id='pAjpH'><b id='pAjpH'><form id='pAjpH'><ins id='pAjpH'></ins><ul id='pAjpH'></ul><sub id='pAjpH'></sub></form><legend id='pAjpH'></legend><bdo id='pAjpH'><pre id='pAjpH'><center id='pAjpH'></center></pre></bdo></b><th id='pAjpH'></th></span></q></dt></tr></i><div id='pAjpH'><tfoot id='pAjpH'></tfoot><dl id='pAjpH'><fieldset id='pAjpH'></fieldset></dl></div>
                    <bdo id='pAjpH'></bdo><ul id='pAjpH'></ul>

                    • <small id='pAjpH'></small><noframes id='pAjpH'>

                      <legend id='pAjpH'><style id='pAjpH'><dir id='pAjpH'><q id='pAjpH'></q></dir></style></legend>

                            <tbody id='pAjpH'></tbody>

                            <tfoot id='pAjpH'></tfoot>