From: | Alex Pilosov <alex(at)pilosoft(dot)com> |
---|---|
To: | Namrata <nlabade(at)nulinkinc(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Binary data Insertion. |
Date: | 2001-06-27 12:47:53 |
Message-ID: | Pine.BSO.4.10.10106270847040.20546-100000@spider.pilosoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bytea. Its not very documented, but you can use it.
create table foo(
a int4,
v bytea)
insert into foo values (1, '\001\002\\000');
note the double backslash for null character.
On Wed, 27 Jun 2001, Namrata wrote:
> Hi there,
>
> How Binary data is inserted in the database?
>
> I want to put the binary data in the database as a record.
>
> Which data type I should use?
>
> Thanks,
> Namrata.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Molter | 2001-06-27 13:27:36 | Re: Weird error |
Previous Message | Alex Pilosov | 2001-06-27 12:43:33 | Re: Blobs in PostgreSQL |