Skip site navigation (1) Skip section navigation (2)

working with schema

From: "William Anthony Lim" <wei(dot)liang(at)eudoramail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: working with schema
Date: 2004-05-10 08:10:31
Message-ID: MHOEFEAILEJLKBAA@whowhere.com (view raw or flat)
Thread:
Lists: pgsql-sql
Hi all,

I'm just experimenting with schema usage. I'm going to use it as a fake 'multi-database' system. Is Postgresql support coding schema name using string variable so I can pass it with parameter? I'm give u an example:

I have schema: D200401,D200402.D200403,D200404, etc.

I've set my user just like the schema name, so who login with D200401 will be using D200401 schema. When someone using D200401 schema, they sometime want to access another schema, so in my thought I can use variable like this:

sPointer='D200403'

select * from sPointer.myTable -- Question: How to write it to work properly?

Thanks


William


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

Responses

pgsql-sql by date

Next:From: Theodore PetroskyDate: 2004-05-10 11:41:50
Subject: Re: not really SQL but I need info on BLOBs
Previous:From: Bruce MomjianDate: 2004-05-10 03:58:12
Subject: Re: Adding MERGE to the TODO list (resend with subject)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group