Re: How to use like with a list
| От | John R Pierce |
|---|---|
| Тема | Re: How to use like with a list |
| Дата | |
| Msg-id | 4EC6C454.60400@hogranch.com обсуждение исходный текст |
| Ответ на | Re: How to use like with a list ("Gauthier, Dave" <dave.gauthier@intel.com>) |
| Ответы |
Re: operator precedence (was: How to use like with a list)
Re: How to use like with a list |
| Список | pgsql-general |
On 11/18/11 12:37 PM, Gauthier, Dave wrote:
> bi_dev=# select name from test where name ~ '^(' || replace('jo,mo,do,fo', ',', '|') || ')l';
> ERROR: argument of WHERE must be type boolean, not type text
ah, needs () around the right side of the ~ expression, not sure why.
does ~ have higher expression priority than || or something?
select name from test where name ~ ('^(' || replace(?, ',', '|') || ')l');
worked for me.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
В списке pgsql-general по дате отправления: