Re: Sql query with partial matching

Поиск
Список
Период
Сортировка
От Steve Heaven
Тема Re: Sql query with partial matching
Дата
Msg-id 3.0.1.32.20001212164038.00fd0bc4@mail.thornet.co.uk
обсуждение исходный текст
Ответ на Sql query with partial matching  (Travis Bauer <trbauer@indiana.edu>)
Список pgsql-general
At 14:58 07/12/00 -0500, Travis Bauer wrote:
>How would I write an sql statement which would select all the
>records from a table where some string field contains
>some substring?  Example: find all the records where f1 contains
>the world "cool."

select * from table where f1 ~ 'cool';

or case insensitive

select * from table where f1 ~* 'cool';

Steve

--
thorNET  - Internet Consultancy, Services & Training
Phone: 01454 854413
Fax:   01454 854412
http://www.thornet.co.uk

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

Предыдущее
От: Carlos Felipe Zirbes
Дата:
Сообщение: Foreign Key constraint and Alter Table command
Следующее
От: Chris Jones
Дата:
Сообщение: Re: No postgres on Solaris