Re: dynamic table names - Mailing list pgsql-general

From David Johnston
Subject Re: dynamic table names
Date
Msg-id 1374101762459-5764161.post@n5.nabble.com
Whole thread Raw
In response to Re: dynamic table names  (John Smith <jayzee.smith@gmail.com>)
List pgsql-general
John Smith-54 wrote
> any help?

Sorry.

Its hard enough teaching people via e-mail let alone teaching them on an
unsupported version of PostgreSQL that has reduced functionality with
respect to function writing compared to the more recent versions.

You are going to need to some kind of "FOR" loop to iterate over each table
you want to query and then use "EXECUTE" to actually perform the query using
the syntax you referred to earlier.

The more complete the examples of your work-in-progress you post the more
help you are likely to get.  Basically read the documentation and try things
and if you get stumped post a specific question about what is stumping you
(with as much detail as possible; but take time to organize and comment it)
to get past the block.

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/dynamic-table-names-tp5764134p5764161.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: John Smith
Date:
Subject: Re: dynamic table names
Next
From: Haiming Zhang
Date:
Subject: Re: Update big table