compare table names

Поиск
Список
Период
Сортировка
От Tony Capobianco
Тема compare table names
Дата
Msg-id 1326125538.1983.12.camel@tony1.localdomain
обсуждение исходный текст
Ответы Re: compare table names
Re: compare table names
Список pgsql-sql
I have these 3 tables:
    tablename      
--------------------tmp_staging0109tmp_staging1229tmp_staging0108


I'd like this query:

select tablename from pg_tables where tablename like 'tmp_staging%' and tablename < 'tmp_staging1230';

To return this result:
    tablename      
--------------------tmp_staging1229

However, I'm receiving:
    tablename      
--------------------tmp_staging0109tmp_staging1229tmp_staging0108

How can I write this correctly?

Thanks.
Tony



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

Предыдущее
От: "cc \"maco\" young"
Дата:
Сообщение: notes on materialized views
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: compare table names