| От | brian ally |
|---|---|
| Тема | Re: Querying for strings that match after prefix |
| Дата | |
| Msg-id | 44803764.4000802@zijn-digital.com обсуждение исходный текст |
| Ответ на | Re: Querying for strings that match after prefix (John Sidney-Woollett <johnsw@wardbrook.com>) |
| Ответы |
Re: Querying for strings that match after prefix
|
| Список | pgsql-general |
John Sidney-Woollett wrote: >>> I need to locate all the entries in a table that match , but only >>> after a number of characters have been ignored. I have a table of >>> email addresses, and someone else has erroneously entered some >>> addresses prefixed with 'mailto:', which I'd like to ignore. > > Or something like > > select ltrim(substr(address, 8)) from people where address like > 'mailto:%' union select address from people where address not like > 'mailto:%' > Could you explain why the UNION? brian
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера