| От | codeWarrior |
|---|---|
| Тема | Re: is there a function which elminates spaces? |
| Дата | |
| Msg-id | djj18u$297u$2@news.hub.org обсуждение |
| Ответы |
Re: is there a function which elminates spaces?
|
| Список | pgsql-general |
SELECT trim(trailing ' ' from city_name) AS city_name FROM sys_cities; You might consider reading the manual as there are a multitude of string manipulation functions built into postgreSQL.... "Pierre Couderc" <pierre@couderc.ccNOSPAM> wrote in message news:djidc4$2hgk$1@biggoron.nerim.net... > In a WHERE clause, I want to to compare strings ignoring the spaces inside > them. Is therd 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 epxression, but I do not see > it.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера