Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



that's right. Thanks again all for the help

On Thu, Feb 17, 2011 at 2:09 PM, David Kerr <dmk@xxxxxxxxxxxxxx> wrote:
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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux