摘要:
warehouse_db=# create table student(number int primary key,name varchar(20),age int);CREATE TABLEwarehouse_db=# insert into student values (1,'David',... 阅读全文
随笔档案-2015年10月
PostgreSQL index types and index bloating
2015-10-16 15:34 by DataBases, 400 阅读, 收藏, 编辑
摘要:
warehouse_db=# create table item (item_id integer not null,item_name text,item_price numeric,item_data text);CREATE TABLEwarehouse_db=# create index i... 阅读全文
PostgreSQL rule view materialized view examples
2015-10-15 15:28 by DataBases, 325 阅读, 收藏, 编辑
摘要:
PostgreSQL rule view materialized view 阅读全文
PostgreSQL 中日期类型转换与变量使用及相关问题
2015-10-14 16:38 by DataBases, 1832 阅读, 收藏, 编辑
摘要:
PostgreSQL中日期类型与字符串类型的转换方法 示例如下: postgres=# select current_date; date 2015-08-31 (1 row) postgres=# select to_char(current_date,'YYYYMMDD'); to_char 2 阅读全文
PostgreSQL数据库中跨库访问解决方案
2015-10-14 16:30 by DataBases, 16174 阅读, 收藏, 编辑
摘要:
PostgreSQL跨数据库访问解决方案 阅读全文
PostgreSQL应用相关问题解决
2015-10-14 16:27 by DataBases, 738 阅读, 收藏, 编辑
摘要:
PostgreSQL中是否区分聚簇索引与非聚簇索引的问题?答:PostgreSQL中区分聚簇索引与非聚簇索引。示例如下:创建聚族索引:CREATE INDEX test_ind ON yy (name ASC NULLS LAST);ALTER TABLE yy CLUSTER ON test_in... 阅读全文
PostgreSQL trigger (function) examples
2015-10-14 16:20 by DataBases, 594 阅读, 收藏, 编辑
摘要:
PostgreSQL 触发器示例 阅读全文
PostgreSQL function examples
2015-10-14 16:19 by DataBases, 1004 阅读, 收藏, 编辑
摘要:
PostgreSQL 存储过程示例 阅读全文