Re: Limit A Table To 1 Row

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Limit A Table To 1 Row
Дата
Msg-id 20020807034208.GA10875@wolff.to
обсуждение исходный текст
Ответ на Limit A Table To 1 Row  (<cnliou@eurosport.com>)
Список pgsql-sql
On Wed, Aug 07, 2002 at 03:29:50 +0000, cnliou@eurosport.com wrote:
> Hello!
> 
> Corporate table, t1, should contain exact 1 row.
> I strongly believe that there are cleaner versions
> than the following combination of trigger and rule.
> 
> Thank you in advance for any improved version!

Another way to keep someone from inserting a second row is to have a primary
key and a constraint fixing the primary key to a fixed value.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SQL syntax
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: SQL syntax