Re: find column name that has under score (_)

Поиск
Список
Период
Сортировка
От David Kerr
Тема Re: find column name that has under score (_)
Дата
Msg-id 20110217190909.GB21365@mr-paradox.net
обсуждение исходный текст
Ответ на find column name that has under score (_)  (akp geek <akpgeek@gmail.com>)
Ответы Re: find column name that has under score (_)  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
On Thu, Feb 17, 2011 at 01:55:46PM -0500, akp geek wrote:
- Hi all -
-
-           I am trying to write a query to find all the column names in
- database that has a underscore in it (_) example souce_id. I know like will
- not work , if where column_name like '%_%' Can you please help?
-
- Regards

select table_schema,table_name, column_name  from information_schema.columns where column_name like '%\\_%';

seems to do the trick.

Dave

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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: find column name that has under score (_)
Следующее
От: akp geek
Дата:
Сообщение: Re: find column name that has under score (_)