[GENERAL] Get tables ending with numbers

Поиск
Список
Период
Сортировка
От Sathesh S
Тема [GENERAL] Get tables ending with numbers
Дата
Msg-id AM5PR10MB06895D3FC5E6F9EBF3C737AD825B0@AM5PR10MB0689.EURPRD10.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответы Re: [GENERAL] Get tables ending with numbers  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [GENERAL] Get tables ending with numbers  ("Charles Clavadetscher" <clavadetscher@swisspug.org>)
Список pgsql-general

Hi All,

Im trying to get tables ending with numbers (last 8 characters should be numbers).

For example: I have the tables "test_20160215" and "test_20160131" and "test_1". When i run the below sql im not getting any output.

Select relname from pg_class where relname like '%[0-9]'

Can someone please give some idea on this.

Thanks,
Sathesh

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

Предыдущее
От: Gmail
Дата:
Сообщение: Re: [GENERAL] Can't restart Postgres
Следующее
От: "Charles Clavadetscher"
Дата:
Сообщение: Re: [GENERAL] Get tables ending with numbers