Re: Is it possible to search for sub-strings...

Поиск
Список
Период
Сортировка
От John McKown
Тема Re: Is it possible to search for sub-strings...
Дата
Msg-id Pine.LNX.4.21.0009190525520.17512-100000@linux2.johnmckown.net
обсуждение исходный текст
Ответ на Is it possible to search for sub-strings...  (John Draper <crunch@webcrunchers.com>)
Список pgsql-general
Assuming that the name of the table is "test1" and the variable containing
the values of interest is name "values", then:

SELECT * FROM test1 WHERE values LIKE 'JYR%';


On Tue, 19 Sep 2000, John Draper wrote:

> Ok,   I have a question...   lets say I have a key fields like this...
>
> JYR-34a
> JYR-34b
> JYR-34c
> JJG-67
> jUY-89
>
> I want to do a query on a substring,   such that I can get all three
> of the JYR's to come up,   regardless if it has an "a",  "b",   or "c"
> after it.    Is that possible in SQL?    If so,   what would the query
> look like?
>
> John
>
>


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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: Re: pgdump
Следующее
От: postgres-interest@enstor.com.au
Дата:
Сообщение: Newbie Config Question