File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 640
640
-->
641
641
<para>
642
642
数值类型常量的语法在<xref linkend="sql-syntax-constants">里描述。
643
- 数值类型对应有一套完整的数学操作符和函数 。相关信息请参考<xref linkend="functions">。
643
+ 对应数值类型有一套完整的数学操作符和函数 。相关信息请参考<xref linkend="functions">。
644
644
下面的几节详细描述这些类型。
645
645
</para>
646
646
653
653
<!--
654
654
<primary>integer</primary>
655
655
-->
656
- <primary>整数 </primary>
656
+ <primary>整型 </primary>
657
657
</indexterm>
658
658
659
659
<indexterm zone="datatype-int">
688
688
</para>
689
689
-->
690
690
<para>
691
- <type>smallint</type>,<type>integer</type>和<type>bigint</type>类型存储各种范围的全部是数字的数 ,
692
- 也就是没有小数部分的数字。试图存储超出范围以外的数值将导致一个错误 。
691
+ <type>smallint</type>,<type>integer</type>和<type>bigint</type>类型存储各种取值范围的整数 ,
692
+ 即,没有小数部分的数字。试图存储超出取值范围以外的数值将导致一个错误 。
693
693
</para>
694
694
695
695
<!--
702
702
</para>
703
703
-->
704
704
<para>
705
- 常用的类型是<type>integer</type>,因为它提供了在范围 、存储空间、性能之间的最佳平衡 。
705
+ 常用的类型是<type>integer</type>,因为它在取值范围 、存储空间、性能之间最为平衡 。
706
706
一般只有在磁盘空间紧张的时候才使用<type>smallint</type>。
707
- 当<type>integer</type>的范围不够的时候才使用 <type>bigint</type>。
707
+ 当<type>integer</type>的取值范围不够用的时候才使用 <type>bigint</type>。
708
708
</para>
709
709
710
710
<!--
718
718
</para>
719
719
-->
720
720
<para>
721
- <acronym>SQL</acronym>只声明了整数类型 <type>integer</type>(或<type>int</type>),
722
- <type>smallint</type>和<type>bigint</type>。类型 <type>int2</type>, <type>int4</type>
723
- 和<type>int8</type>都是扩展,并且也在许多其它 <acronym>SQL</acronym>数据库系统中使用 。
721
+ <acronym>SQL</acronym>标准只定义了整型 <type>integer</type>(或<type>int</type>),
722
+ <type>smallint</type>和<type>bigint</type>。名为 <type>int2</type>, <type>int4</type>
723
+ 和<type>int8</type>的类型都是扩展,它们也在许多其它符合 <acronym>SQL</acronym>标准的数据库系统中使用 。
724
724
</para>
725
725
726
726
</sect2>
You can’t perform that action at this time.
0 commit comments