天天看点

PostgreSQL的hstore初步学习

安装hstore:

进入源代码的 /contrib/hstore 目录,然后执行gmake 和 gmake install:

PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习

gmake:

PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习

然后,启动PostgreSQL,再启动psql后,安装hstore扩展:

进行测试:

建表:

插入数据:

PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习

修改数据:

PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习

按Key值查询:

PostgreSQL的hstore初步学习
PostgreSQL的hstore初步学习

<a></a>

<a>本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/p/3351294.html,如需转载请自行联系原作者</a>

继续阅读