How to use like with a list
| От | Gauthier, Dave |
|---|---|
| Тема | How to use like with a list |
| Дата | |
| Msg-id | 482E80323A35A54498B8B70FF2B8798004D5F424A2@azsmsx504.amr.corp.intel.com обсуждение исходный текст |
| Ответы |
Re: How to use like with a list
Re: How to use like with a list |
| Список | pgsql-general |
Hi:
How can I search on a csv list of values using "like" where each value is to be appended with a wildcarded string?
Example:
list = 'jo,mo,do,fo'
I want to pull all names from a table with name like.. 'jol%' or 'mol%' or'dol%' or 'sol%'
would match "jolly, molly, moleman,dollface, solarboy"
notice they all have the same "l%' wildcarded suffix.
I'm really not that lazy, just trying to keep this in a simgle query in order to minimize network hits which will reduce overall wallclock performance. This thing wil be running in a programming loop.
Thanks in Advance !
В списке pgsql-general по дате отправления: