Hi,

Use a regular expression, e.g.:

select trim(regexp_replace('foobarbaz', '(.)', E'\\1 ', 'g'));

See http://www.postgresql.org/docs/8.3/static/functions-matching.html
for more.
+mt

Nicholas I wrote:
> Hi,
>
>  can anybody help me, to insert a space between each character in
> postgresql.
>
>  for example,
>
>   ABC
>
>  output
>   A B C
>
> -Dominic


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply via email to