Re: Differences between bit string constant sintax

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Differences between bit string constant sintax
Date: 2009-09-10 09:25:47
Message-ID: h8agmr$s66$1@reversiblemaps.ath.cx
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2009-09-09, Oliveiros C, <oliveiros(dot)cristina(at)marktest(dot)pt> wrote:
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_013B_01CA3146.85B62920
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Dear All,
>
> I have a table which has a field that is of type bit varying.
>
> When I do a direct INSERT with , say, X'1F', everything
> works fine.

copy syntax differs from literal syntax in several ways
(an obvious one is that tabs are allowed in literals)
in this case you don't use quotes in the value.

copy mytable from stdin;
4 xdeadbeef
5 x123
\.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mario Splivalo 2009-09-10 12:23:07 Trapping 'invalid input syntax for integer'
Previous Message jtayamai 2009-09-09 16:09:57 Encryption in the tables of a Postgres 7.3.2 database