| Postgres 資料庫是由柏克萊大學電腦科學系所開發的資料庫系統,為物件關聯式資料庫的先驅。它提供 SQL92/SQL3 語法。PostgreSQL 是公開使用的免費系統。更多細節可在 http://www.PostgreSQL.org 站上看到。
在 phpWizard.net 網站上也有用 Browser 管理 PostgreSQL 的套裝程式 PostgresAdmin。可以用它來輕鬆管理 PostgreSQL 資料庫。
在西元 1998 年的 PostgreSQL 6.3 版之後,可以使用 UNIX 上的 domain sockets。postmaster 加上參數 -i 就可以使用,PostgreSQL 系統會用到 /tmp/.s.PGSQL.5432 的檔案。
下面為使用 LOB (Large Object) 的例子
<?php $database = pg_Connect ("", "", "", "", "jacarta"); pg_exec ($database, "begin"); $oid = pg_locreate ($database); echo ("$oid\n"); $handle = pg_loopen ($database, $oid, "w"); echo ("$handle\n"); pg_lowrite ($handle, "gaga"); pg_loclose ($handle); pg_exec ($database, "commit") pg_exec ($database, "end") ?>
|