Re: Using psql to insert character codes - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: Using psql to insert character codes
Date
Msg-id Pine.LNX.4.44.0305111828010.2399-100000@peter.localdomain
Whole thread Raw
In response to Using psql to insert character codes  (Ian Barwick <barwick@gmx.net>)
Responses Re: Using psql to insert character codes  (Ian Barwick <barwick@gmx.net>)
List pgsql-sql
Ian Barwick writes:

> I can do this:
> INSERT INTO my_tbl (unitxt) VALUE(encode(decode('c3a4','hex'), 'escape'))
>
> Is there any other, shorter way of doing the same?

Use octal escapes: '\303\244';

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-sql by date:

Previous
From: Chris Linstruth
Date:
Subject: sub select performance
Next
From: Bruno Wolff III
Date:
Subject: Re: sub select performance