How To Get Bytea Data Instead Of Its Oid

From: "CN LIOU" <cnliou(at)graffiti(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: How To Get Bytea Data Instead Of Its Oid
Date: 2002-09-19 14:11:13
Message-ID: 20020919141116.13398.qmail@graffiti.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Greetings!

I must have missed lesson 1 of postgresql!

create table test (c1 text,c2 bytea);

Then, I probably have successfullyi nserted several records into test using C++Builder. Now I am trying to retrieve back the binary data in c2 I just inserted. However, the SQL statement issued by both C++Builder and psql:

SELECT * FROM test LIMIT 1

returns, I guess, the OID of c2 instead of the binary data to which the OID points.

What is the correct SQL syntax for C++Builder for bytea?

Regards,
--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-09-19 14:28:01 Re: Index usage on date feild , differences in '>' and '>='
Previous Message Thorbjörn Eriksson 2002-09-19 11:41:25 Re: Stripping white-space in SELECT statments