Is there a function which eliminates spaces?

From: Pierre Couderc <pierre(at)couderc(dot)cc>
To: pgsql-novice(at)postgresql(dot)org
Subject: Is there a function which eliminates spaces?
Date: 2005-10-24 13:24:48
Message-ID: djinao$pr9$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

In a WHERE clause, I want to to compare strings ignoring the spaces
inside them. Is there a function to do that? I do not find it in the
documentation.

SELECT (...) WHERE (ignore_spaces(table.phone_number) ~* igore_spaces(?));

would be fine but ignore_space() does not exist!

Maybe there is a solution based on regular expression, but I do not see it.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Glaesemann 2005-10-24 13:46:50 Re: Is there a function which eliminates spaces?
Previous Message Rieback Melanie 2005-10-24 11:31:00 Re: Displaying current query - eliminating <IDLE>