天天看點

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>

繼續閱讀