Re: what does ONLY do

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: what does ONLY do
Дата
Msg-id 20050218191259.I39081@megazone.bigpanda.com
обсуждение исходный текст
Ответ на what does ONLY do  (Bret Hughes <bhughes@elevating.com>)
Ответы Re: what does ONLY do  (Bret Hughes <bhughes@elevating.com>)
Список pgsql-sql
On Fri, 18 Feb 2005, Bret Hughes wrote:

> I can't seem to find an explanation of what adding ONLY does for an sql
> statement  for instance :
>
> ALTER TABLE [ONLY] ADD COLUMN ...
>
> or what ever.  Does anyone have a pointer to docs on this.  I am simply
> curious since there is obviously something I am missing.

Using the ALTER TABLE page as an example...

name
   The name (possibly schema-qualified) of an existing table to alter. If
ONLY is specified, only that table is altered. If ONLY is not specified,
the table and all its descendant tables (if any) are updated. * can be
appended to the table name to indicate that descendant tables are to be
altered, but in the current version, this is the default behavior. (In
releases before 7.1, ONLY was the default behavior. The default can be
altered by changing the configuration parameter sql_inheritance.)


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

Предыдущее
От: Bret Hughes
Дата:
Сообщение: what does ONLY do
Следующее
От: Bret Hughes
Дата:
Сообщение: Re: what does ONLY do