集合类型挺复杂,各种 *** 作符各种函数。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,4'; Box ------------- (1,4),(1,2)(1 row)postgres=# select path'1,3,6,8,9,4,7'; path --------------------------- ((1,3),(6,8),(9,(4,7))(1 row)postgres=# select circle'1,3'; circle ----------- <(1,2),3>(1 row)总结
以上是内存溢出为你收集整理的PostgreSQL学习篇9.11 几何类型全部内容,希望文章能够帮你解决PostgreSQL学习篇9.11 几何类型所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)