From: Scott cox <sadcox66@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: creating postgres tables by passing a string to function
Date: Fri, 30 Sep 2005 15:38:40 +0000
Message-ID: <BAY109-F333FA3BE29E1744F29825FCD8F0@phx.gbl> (raw)
I am storing data separated by month.
How do I perform Inserts and Selects based on something like this.
select * from (select 'shipped' || '0509') AS aShippingTable
The table 'shipped' || '0509' exists.
I am scanning barcode labels which have the '0509' on them and I want to
move the data
to appropiate monthly tables. '0510' would represent shipped on 2005
october.
Eventually I want to create, insert, select all based on passing a string
such as '0509' to a function.
I am a newbie.
Thanks in advance
-Scott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sadcox66@hotmail.com
Subject: Re: creating postgres tables by passing a string to function
In-Reply-To: <BAY109-F333FA3BE29E1744F29825FCD8F0@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox