Re: limiting access to (through) views

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: limiting access to (through) views
Дата
Msg-id 20020116074331.G44027-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: limiting access to (through) views  ("Glenn MacGregor" <gtm@oracom.com>)
Список pgsql-sql
On Wed, 16 Jan 2002, Glenn MacGregor wrote:

> Thanks,
>
> Now is it possible to do the following:
>
> select table1.* from
> table1, table2 where
> table1.col3=table2.key and
> table2.username like 'CURRENT_USER%'
>
> This is returning nothing when I know it should be returning something, so I
> think that since the CURRENT_USER is in the ' it is not executing the
> function.  Is there a way to make that execute using the like with the regex
> matching (%)?

Do you really want a like search or are you trying to get around it not
matching something?
table2.username like CURRENT_USER || '%' would probably work.



В списке pgsql-sql по дате отправления:

Предыдущее
От: Wei Weng
Дата:
Сообщение: Re: Count Total on a limited query?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql bug: copy paste statements looses tab character