Re: limit table to one row

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: limit table to one row
Date: 2009-06-09 12:39:59
Message-ID: h0ll6v$90o$8@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-06-04, Brandon Metcalf <brandon(at)geronimoalloys(dot)com> wrote:
> Is there a way when creating a table to limit it to one row? That is,
> without using a stored procedure?
>
> I searched the documentation, but didn't find anything.

create a unique index, and a constraint to a single value on one of
the columns :)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2009-06-09 12:50:48 Re: Move PGdata to a different drive
Previous Message postgresqlgeneral.domain.thewild_codata 2009-06-09 12:35:22 Re: Block_Size on NTFS