|
切换到PostgreSQL提上日程了,简单做点笔记。
摘自:http://www.postgresql.org/docs/9.0/interactive/datatype.html
NameAliasesDescriptionbigintint8有符号8字节整数
bigserialserial8自增8字节整数bit [ (n) ] 定长位串
bit varying [ (n) ]varbit变长位串booleanbool逻辑布尔值(true/false)box 平面中的矩形bytea 二进制数据("字节数组")character varying [ (n) ]varchar [ (n) ]变长字符串character [ (n) ]char [ (n) ]定长字符串cidr IPv4 或 IPv6 网络地址circle 平面中的圆date 日历日期 (年, 月, 日)double precisionfloat8双精度浮点数(8 字节)inet IPv4 或 IPv6 主机地址
integerint, int4有符号4字节整数interval [ fields] [ (p) ] 时间间隔line 平面中的无限上直线lseg 平面中的线段macaddr MAC 地址money 货币金额
numeric [ (p, s) ]decimal [ (p, s) ]可选精度的准确数字path 平面中的几何路径point 平面中的点polygon 平面中的闭合几何路径realfloat4单精度浮点数 (4 字节)smallintint2有符号两字节整数serialserial4自增4字节整形text 变长字符串time [ (p) ] [ without time zone ] 一天中的时间(不包括时区)time [ (p) ] with time zonetimetz一开中的时间, 包括时区
timestamp [ (p) ] [ without time zone ] 日期和时间、时间戳 (不包括时区)timestamp [ (p) ] with time zonetimestamptz日期和时间、时间戳, 包括时区tsquery 文本搜索查询tsvector 文本搜索文档txid_snapshot 用户级事务ID快照uuid UUIDxml XML数据 |
|
|