Re: how to use multiple schema's

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: how to use multiple schema's
Дата
Msg-id 20090902170831.GU5407@samason.me.uk
обсуждение исходный текст
Ответ на Re: how to use multiple schema's  (Himanshu Gupta <himanshu.gupta@semanticbits.com>)
Ответы Re: how to use multiple schema's  ("Roderick A. Anderson" <raanders@cyber-office.net>)
Список pgsql-general
On Wed, Sep 02, 2009 at 10:52:07AM -0400, Himanshu Gupta wrote:
> Thanks for response, bit if I point it to all the schema, I am just
> wondering how data insertion will work, I have multiple ables with
> same name in these applications.

Do you know that you can schema qualify table names don't you?  For
example, if you have a "users" table in schemas "app1" and "app2", you
can refer to the table in the first schema as:

  SELECT uid, name
  FROM app1.users;

--
  Sam  http://samason.me.uk/

В списке pgsql-general по дате отправления:

Предыдущее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: how to use multiple schema's
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL Live CD based on CentOS 5.3 and PG 8.4 released