| From: | akp geek <akpgeek(at)gmail(dot)com> |
|---|---|
| To: | David Kerr <dmk(at)mr-paradox(dot)net> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: find column name that has under score (_) |
| Date: | 2011-02-17 19:09:47 |
| Message-ID: | AANLkTikoRjOtZ=Fb47Sjz5gMa1xanDsVDrTQs5Hxod10@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
that's right. Thanks again all for the help
On Thu, Feb 17, 2011 at 2:09 PM, David Kerr <dmk(at)mr-paradox(dot)net> 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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | hubert depesz lubaczewski | 2011-02-17 19:55:29 | Re: find column name that has under score (_) |
| Previous Message | David Kerr | 2011-02-17 19:09:09 | Re: find column name that has under score (_) |