Search Postgresql Archives

Re: [pgsql-general] Daily digest v1.9081 (14 messages)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8 Jun 2009, at 17:23, Merlin Moncure <mmoncure@xxxxxxxxx> 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));

very clever :D

merlin

To clever for me, I don't understand what's going on and can't replicate it in my 8.3. Any expansion?

Rgs
Oliver

oliver@xxxxxxxxxx / 0845 456 1810 / 07814 828608
www.gtwm.co.uk - company


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux