Re: Wild Cards

Поиск
Список
Период
Сортировка
От Adam Haberlach
Тема Re: Wild Cards
Дата
Msg-id 20010126230412.A13869@newsnipple.com
обсуждение исходный текст
Ответ на Wild Cards  ("<No Name>" <bobmarley4u2c@yahoo.com>)
Ответы Re: Wild Cards
Список pgsql-general
On Thu, Jan 25, 2001 at 08:40:23AM -0500, <No Name> wrote:
> I am not able to get Wildcards in PostgreSQL, I know its * (asterisk), but
> its not working. can someone show me a example or something?

It's % and you have to use the LIKE operator.

SELECT * FROM thistable WHERE name LIKE '%marley';

--
Adam Haberlach            |A cat spends her life conflicted between a
adam@newsnipple.com       |deep, passionate, and profound desire for
http://www.newsnipple.com |fish and an equally deep, passionate, and
'88 EX500                 |profound desire to avoid getting wet.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trouble porting postgreSQL to WinNT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 2 or more columns of type 'serial' in a table