摘要: 转自 https://blog.csdn.net/tomcat_2014/article/details/49947711 阅读全文
posted @ 2018-11-08 18:08 zhangfen1991 阅读(1258) 评论(0) 推荐(1) 编辑
摘要: 方法1create type deptSon as ( mid varchar(36), id varchar(36), name varchar(200), DeptParentId varchar(36) ); CREATE OR REPLACE FUNCTION function2 () RETURNS SETOF deptSon AS $body$ SELECT id,id,n... 阅读全文
posted @ 2018-11-08 18:04 zhangfen1991 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 转自 https://blog.csdn.net/victor_ww/article/details/44415895 create type custom_data_type as ( id int, name varchar(50), score decimal(5,2), create_tim 阅读全文
posted @ 2018-11-08 17:55 zhangfen1991 阅读(2073) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE range_list (a int,b timestamp) PARTITION BY RANGE (b); CREATE TABLE range_pa1 PARTITION OF range_list FOR VALUES from ('2000-01-01') TO ( 阅读全文
posted @ 2018-11-08 17:50 zhangfen1991 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 转自 https://www.2cto.com/database/201206/137301.html Postgresql的隐藏系统列 和oracle数据库一样,postgresql也有自身的一套隐藏的系统列。下面介绍如下: 1.oid oid是object identifier的简写,其相关的参 阅读全文
posted @ 2018-11-08 17:45 zhangfen1991 阅读(330) 评论(0) 推荐(0) 编辑