Techniques for quickly finding words in a phrase...

Поиск
Список
Период
Сортировка
От Carl Flansbaum
Тема Techniques for quickly finding words in a phrase...
Дата
Msg-id NCBBJGOOFJCJNAOHJECCGEFLFDAA.carl@planetcpub.com
обсуждение исходный текст
Список pgsql-sql
Hello,

Ok, can anyone help with the following...

I'm also looking to write a SQL query to find a specific string in a target
of words.

the field contains values like 1234 2456 1234a etc.

The problem is that the string must be exact, so while using


WHERE foo ~ '1234';

or

WHERE foo LIKE '1234';

or

WHERE foo ~* '[[:<:]]1234';

will work, it also brings up results with the 1234a value in the field.

I've tried a wide variety of pattern matching with no luck.

any advice?

thanks

carl



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

Предыдущее
От: "Martin Kresse"
Дата:
Сообщение: Re: [SQL] "Permission denied" on public view
Следующее
От: "James Macken"
Дата:
Сообщение: How to set up a simple relational database