Brandon Metcalf 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 TABLE x (...);

CREATE UNIQUE INDEX x_only_one_row ON ((1));

--
Craig Ringer

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to