PostgreSQL学习篇9.11 几何类型
2016-12-24 11:31
351 查看
集合类型挺复杂,各种操作符各种函数。 point :平面中的点 line:直线 lseg:线段 box:矩形 path:路径,()表示闭合路径,[]表示开放路径 circle:圆 等 输入: 类型名称 '表现形式' '表现形式'::类型名称 postgres=# select '1,1'::point; point ------- (1,1) (1 row) postgres=# select '(1,1)'::point; point ------- (1,1) (1 row) postgres=# select lseg'1,1,2,3'; lseg --------------- [(1,1),(2,3)] (1 row) postgres=# select box'1,2,1,4'; box ------------- (1,4),(1,2) (1 row) postgres=# select path'1,3,6,8,9,3,4,7'; path --------------------------- ((1,3),(6,8),(9,3),(4,7)) (1 row) postgres=# select circle'1,2,3'; circle ----------- <(1,2),3> (1 row)
相关文章推荐
- PostgreSQL学习篇9.12 网络地址类型
- PostgreSQL学习篇9.13 复合类型
- PostgreSQL学习篇9.7 字符串类型
- PostgreSQL学习篇9.2 数值类型
- PostgreSQL学习篇9.8 位串类型
- postgresql----几何类型和函数
- PostgreSQL学习篇9.3 浮点数类型
- PostgreSQL学习篇9.4 序列类型
- PostgreSQL学习篇9.5 货币类型
- PostgreSQL学习篇9.9 日期/时间类型
- PostgreSQL学习篇9.15 JSON类型
- PostgreSQL数据类型-枚举类型、几何类型、网络地址类型和其他数据类型
- PostgreSQL学习篇9.17 数组类型
- PostgreSQL学习篇9.3 浮点数类型
- PostgreSQL学习篇9.16 range类型
- PostgreSQL 保存json,jsonb类型
- 通过程序设计几何图形(Shape)、矩形(Rectangle)、圆形(Circle)、正方形(Square)几种类型, 能够利用接口和多态性计算几何图形的面积和周长并显示。
- 在java中正确使用PostgreSQL大对象和字节流类型的姿势
- PostgreSQL数值类型--浮点类型和序列
- PostgreSQL 中定义自己需要的数据类型