码迷,mamicode.com
首页 > 数据库 > 详细

PostgreSQL 数据类型

时间:2019-10-14 11:01:37      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:des   rem   after   choice   name   精度   pre   浮点数   size   

数值类型

数值类型由两个字节,4字节和8字节的整数,4字节和8字节的浮点数和可选精度的小数。下表列出了可用的类型。 www.yiibai.com

NameStorage SizeDescriptionRange
int2 2 bytes small-range integer -32768 to +32767
int4 4 bytes typical choice for integer -2147483648 to +2147483647
int8 8 bytes large-range integer -9223372036854775808 to 9223372036854775807
decimal variable user-specified precision,exact up to 131072 digits before the decimal point; up to 16383 digits after the decimal point
float4 4 bytes variable-precision,inexact 6 decimal digits precision
float8 8 bytes variable-precision,inexact 15 decimal digits precision
serial2 2 bytes small autoincrementing integer 1 to 32767
serial4 4 bytes autoincrementing integer 1 to 2147483647
serial8 8 bytes large autoincrementing integer 1 to 9223372036854775807

PostgreSQL 数据类型

标签:des   rem   after   choice   name   精度   pre   浮点数   size   

原文地址:https://www.cnblogs.com/mobies/p/11669907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!