Re: variables with SELECT statement

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: variables with SELECT statement
Date: 2008-09-05 20:44:20
Message-ID: 48C19A24.90203@sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Kevin Duffy wrote:
> Noticed that string_to_array does not handle double spaces very well.
> If there are double space between the tokens, there is "" (empty string)
> in the array returned. Not exactly what I expected.

Try regexp_replace

http://www.postgresql.org/docs/8.3/interactive/functions-string.html

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kevin Duffy 2008-09-05 21:03:54 Re: variables with SELECT statement
Previous Message Kevin Duffy 2008-09-05 20:31:51 Re: variables with SELECT statement