Hi,
On 2007-03-16 10:15:37 +0100, Laurenz Albe <invite (AT) spam (DOT) to.invalid> said:
Quote:
Philipp Kraus <philipp.kraus (AT) flashpixx (DOT) de> wrote:
I must find a value in all numeric fields in my postgres database. The
database hasn't oids. How I can create this statement.
You mean, all numeric columns in all tables in your database?? |
yes
Quote:
That's a rather unusual requirement. Are you sure that this is what you
need? Depending on the size of the database, it could take forever. |
Sure, I need this, cause we must redesign the database and wie haven't
any documentation, so I have to get the references between the
dataitems. It is'nt a statement for a view or something else, I need it
to get more information.
Quote:
I don't think it can be done in one single statement.
You'll probably have to construct SELECT statements for all tables in
the database and have to run them all. |
I know, I think I must get all tablenames from pg_tables, but how I can
get the fields from the table and theire values.
Thanks
Phil