Skip to content

Commit dc8485a

Browse files
committed
Merge pull request #83 from xiaowing/master
完成Datatype章节Summary以及Section 1的校对.
2 parents d3aa84e + 224c31d commit dc8485a

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

postgresql/doc/src/sgml/datatype.sgml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
</para>
4646
-->
4747
<para>
48-
<xref linkend="datatype-table">显示了所有内置的普通数据类型
49-
在<quote>别名</quote>列里列出的大多数可选名字都是因历史原因<productname>PostgreSQL</productname>
50-
在内部使用的名字。另外,还有一些内部使用的或者废弃的类型也可以使用
48+
<xref linkend="datatype-table">显示了所有内置的泛用数据类型
49+
在<quote>别名</quote>列里列出的大多数可选名字都是因历史原因在<productname>PostgreSQL</productname>
50+
内部使用。另外,还有一些内部使用的或者废弃的类型也是可用的
5151
但没有在这里列出。
5252
</para>
5353

@@ -104,7 +104,7 @@
104104
<!--
105105
<entry>variable-length bit string</entry>
106106
-->
107-
<entry>变长位串</entry>
107+
<entry>可变长位串</entry>
108108
</row>
109109

110110
<row>
@@ -140,7 +140,7 @@
140140
<!--
141141
<entry>variable-length character string</entry>
142142
-->
143-
<entry>变长字符串</entry>
143+
<entry>可变长字符串</entry>
144144
</row>
145145

146146
<row>
@@ -185,7 +185,7 @@
185185
<!--
186186
<entry>double precision floating-point number (8 bytes)</entry>
187187
-->
188-
<entry>双精度浮点数字(8字节)</entry>
188+
<entry>双精度浮点数(8字节)</entry>
189189
</row>
190190

191191
<row>
@@ -259,7 +259,7 @@
259259
<!--
260260
<entry>exact numeric of selectable precision</entry>
261261
-->
262-
<entry>可选精度的准确数字</entry>
262+
<entry>可选精度的准确数值数据类型</entry>
263263
</row>
264264

265265
<row>
@@ -331,7 +331,7 @@
331331
<!--
332332
<entry>variable-length character string</entry>
333333
-->
334-
<entry>变长字符串</entry>
334+
<entry>可变长字符串</entry>
335335
</row>
336336

337337
<row>
@@ -340,7 +340,7 @@
340340
<!--
341341
<entry>time of day (no time zone)</entry>
342342
-->
343-
<entry>一天中的时间(无时区)</entry>
343+
<entry>一天中的时刻(无时区)</entry>
344344
</row>
345345

346346
<row>
@@ -349,7 +349,7 @@
349349
<!--
350350
<entry>time of day, including time zone</entry>
351351
-->
352-
<entry>一天里的时间,包括时区</entry>
352+
<entry>一天中的时刻,含时区</entry>
353353
</row>
354354

355355
<row>
@@ -358,7 +358,7 @@
358358
<!--
359359
<entry>date and time (no time zone)</entry>
360360
-->
361-
<entry>日期和时间(无时区)</entry>
361+
<entry>日期与时刻(无时区)</entry>
362362
</row>
363363

364364
<row>
@@ -367,7 +367,7 @@
367367
<!--
368368
<entry>date and time, including time zone</entry>
369369
-->
370-
<entry>日期和时间,包括时区</entry>
370+
<entry>日期与时刻,含时区</entry>
371371
</row>
372372

373373
<row>
@@ -447,15 +447,15 @@
447447
</para>
448448
-->
449449
<para>
450-
下列类型(或者那样拼写的)是<acronym>SQL</acronym>声明的
450+
下列类型(或那样的拼写)是<acronym>SQL</acronym>规范声明的
451451
<type>bigint</type>, <type>bit</type>, <type>bit
452452
varying</type>, <type>boolean</type>, <type>char</type>,
453453
<type>character varying</type>, <type>character</type>,
454454
<type>varchar</type>, <type>date</type>, <type>double
455455
precision</type>, <type>integer</type>, <type>interval</type>,
456456
<type>numeric</type>, <type>decimal</type>, <type>real</type>,
457-
<type>smallint</type>, <type>time</type> (有时区和无时区),
458-
<type>timestamp</type> (有时区和无时区),
457+
<type>smallint</type>, <type>time</type> (有时区或无时区),
458+
<type>timestamp</type> (有时区或无时区),
459459
<type>xml</type>。
460460
</para>
461461
</note>
@@ -475,9 +475,9 @@
475475
-->
476476
<para>
477477
每种数据类型都有一个由其输入和输出函数决定的外部表现形式。
478-
许多内建的类型有明显的格式。不过,许多类型要么是<productname>PostgreSQL</productname>
479-
所特有的,比如几何路径,要么是有几种不同的格式,比如日期和时间类型
480-
有些输入和输出函数是不可逆的也就是说,
478+
许多内置的类型有明显的外部格式。不过,一些数据类型要么是<productname>PostgreSQL</productname>
479+
所特有的,比如几何路径,要么是有若干种不同的格式,比如日期和时刻类型
480+
有些输入和输出函数是不可逆的也就是说,
481481
输出函数的输出结果和原始的输入比较的时候可能丢失精度。
482482
</para>
483483

@@ -504,7 +504,7 @@
504504
</para>
505505
-->
506506
<para>
507-
数值类型由 2 、4 8 字节的整数以及 4 8 字节的浮点数和可选精度的小数组成
507+
数值类型由 2 字节、4 字节或 8 字节的整数以及 4 字节或 8 字节的浮点数和可选精度的十进制数组成
508508
<xref linkend="datatype-numeric-table">列出了所有可用类型。
509509
</para>
510510

@@ -523,7 +523,7 @@
523523
<entry>Range</entry>
524524
-->
525525
<entry>名字</entry>
526-
<entry>存储空间</entry>
526+
<entry>存储长度</entry>
527527
<entry>描述</entry>
528528
<entry>范围</entry>
529529
</row>
@@ -571,8 +571,8 @@
571571
<entry>user-specified precision, exact</entry>
572572
<entry>up to 131072 digits before the decimal point; up to 16383 digits after the decimal point</entry>
573573
-->
574-
<entry>变长</entry>
575-
<entry>用户声明精度,精确</entry>
574+
<entry>可变长</entry>
575+
<entry>用户指定的精度,精确</entry>
576576
<entry>小数点前 131072 位;小数点后 16383 位</entry>
577577
</row>
578578
<row>
@@ -582,8 +582,8 @@
582582
<entry>user-specified precision, exact</entry>
583583
<entry>up to 131072 digits before the decimal point; up to 16383 digits after the decimal point</entry>
584584
-->
585-
<entry>变长</entry>
586-
<entry>用户声明精度,精确</entry>
585+
<entry>可变长</entry>
586+
<entry>用户指定的精度,精确</entry>
587587
<entry>小数点前 131072 位;小数点后 16383 位</entry>
588588
</row>
589589

@@ -595,20 +595,20 @@
595595
<entry>6 decimal digits precision</entry>
596596
-->
597597
<entry>4 字节</entry>
598-
<entry>变精度,不精确</entry>
598+
<entry>可变精度,不精确</entry>
599599
<entry>6 位十进制数字精度</entry>
600600
</row>
601601
<row>
602602
<entry><type>double precision</></entry>
603603
<entry>8 字节</entry>
604-
<entry>变精度,不精确</entry>
604+
<entry>可变精度,不精确</entry>
605605
<entry>15 位十进制数字精度</entry>
606606
</row>
607607

608608
<row>
609609
<entry><type>smallserial</type></entry>
610610
<entry>2 字节</entry>
611-
<entry>小范围自增整数</entry>
611+
<entry>自增的小范围整数</entry>
612612
<entry>1 到 32767</entry>
613613
</row>
614614

@@ -622,7 +622,7 @@
622622
<row>
623623
<entry><type>bigserial</type></entry>
624624
<entry>8 字节</entry>
625-
<entry>大范围自增整数</entry>
625+
<entry>自增的大范围整数</entry>
626626
<entry>1 到 9223372036854775807</entry>
627627
</row>
628628
</tbody>
@@ -640,7 +640,7 @@
640640
-->
641641
<para>
642642
数值类型常量的语法在<xref linkend="sql-syntax-constants">里描述。
643-
数值类型对应有一套完整的数学操作符和函数。相关信息请参考<xref linkend="functions">。
643+
对应数值类型有一套完整的数学操作符和函数。相关信息请参考<xref linkend="functions">。
644644
下面的几节详细描述这些类型。
645645
</para>
646646

@@ -653,7 +653,7 @@
653653
<!--
654654
<primary>integer</primary>
655655
-->
656-
<primary>整数</primary>
656+
<primary>整型</primary>
657657
</indexterm>
658658

659659
<indexterm zone="datatype-int">
@@ -688,8 +688,8 @@
688688
</para>
689689
-->
690690
<para>
691-
<type>smallint</type>,<type>integer</type>和<type>bigint</type>类型存储各种范围的全部是数字的数
692-
也就是没有小数部分的数字。试图存储超出范围以外的数值将导致一个错误
691+
<type>smallint</type>,<type>integer</type>和<type>bigint</type>类型存储各种取值范围的整数
692+
即,没有小数部分的数字。试图存储超出取值范围以外的数值将导致一个错误
693693
</para>
694694

695695
<!--
@@ -702,9 +702,9 @@
702702
</para>
703703
-->
704704
<para>
705-
常用的类型是<type>integer</type>,因为它提供了在范围、存储空间、性能之间的最佳平衡
705+
常用的类型是<type>integer</type>,因为它在取值范围、存储空间、性能之间最为平衡
706706
一般只有在磁盘空间紧张的时候才使用<type>smallint</type>。
707-
当<type>integer</type>的范围不够的时候才使用<type>bigint</type>。
707+
当<type>integer</type>的取值范围不够用的时候才使用<type>bigint</type>。
708708
</para>
709709

710710
<!--
@@ -718,9 +718,9 @@
718718
</para>
719719
-->
720720
<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>标准的数据库系统中使用
724724
</para>
725725

726726
</sect2>

0 commit comments

Comments
 (0)