SQL Where Like - Range it?!

Поиск
Список
Период
Сортировка
От Sterling
Тема SQL Where Like - Range it?!
Дата
Msg-id 3AE8A737.4C5D5A7C@omeninc.com
обсуждение исходный текст
Список pgsql-general
H-

I've found the docs on how to select a list of rows from a table were
all the records have a last name starting with 'W%'.
select * from table where last_name LIKE 'W%'

What I'd like to do is pull a list of records where there is a range of
last names; say from A - F.
select * from table where last_name LIKE 'A%' AND last_name LIKE 'F%' -
for example.

The above code I've tried for this doesn't seem to work as I'd expect it
too?
I've even done
select * from table where last_name LIKE 'A%' AND LIKE 'F%'

Can anyone provide some details or insights on how to accomplish this?

Thanks. Much appreciated.
-Sterling

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

Предыдущее
От: Calvin Dodge
Дата:
Сообщение: Re: SQL Where LIKE - Range it!
Следующее
От: Jelle Ouwerkerk
Дата:
Сообщение: rotating log files