Skip site navigation (1) Skip section navigation (2)

how to r/w blob field in postgres

From: danny <danny_ml1(at)sh(dot)fishinteractive(dot)com>
To: "pgsql-php(at)postgresql(dot)org" <pgsql-php(at)postgresql(dot)org>
Subject: how to r/w blob field in postgres
Date: 2000-07-27 20:52:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
hi everyone

I have read the sample of create large object of pg_sql in the php manual.
here it is:

Example 1. Using Large Objects

  2 <?php
  3     $database = pg_Connect ("", "", "", "", "jacarta");
  4     pg_exec ($database, "begin");
  5     $oid = pg_locreate ($database);
  6     echo ("$oid\n");
  7     $handle = pg_loopen ($database, $oid, "w");
  8     echo ("$handle\n");
  9     pg_lowrite ($handle, "gaga");
 10     pg_loclose ($handle);
 11     pg_exec ($database, "commit");
 12 ?>
I am confusing. According this sample, but which table and which record will be updated.
Anyone has tried this ? Please give me a full sample


pgsql-php by date

Next:From: Dan WilsonDate: 2000-07-31 01:54:19
Subject: phpPgAdmin 2.1 released!
Previous:From: Dan WilsonDate: 2000-07-15 20:15:38
Subject: Re: case sensitiv table and column names

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group