Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: [Fwd: héritage de table]


  • From: "Stéphane A. Schildknecht" <stephane(dot)schildknecht(at)postgresqlfr(dot)org>
  • To: Pgsql Fr Generale <pgsql-fr-generale(at)postgresql(dot)org>
  • Subject: Re: [Fwd: héritage de table]
  • Date: Thu, 26 Mar 2009 11:34:01 +0100
  • Message-id: <49CB5A19.5000500@postgresqlfr.org> <text/plain>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pascal Brognez a écrit :
(...)

> 
> Par contre je vais prendre un serial comme Primary key pour la table
> "logiciel" et oublier cette histoire d'héritage.
> D'où la nouvelle question (google):
> Peux t-on avoir l'unicité pour un groupement de colonnes sans que
> celles-ci soient Primary Key?

Oui, sans problème, il suffit de déclarer une contrainte d'unicité sur le
groupement de colonnes. Cela revient à créer un index UNIQUE.

SAS


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJy1oZA+REPKWGI0ERAoSrAKCvAgTXsA98MaToml5F/6s8r3806gCdGx5x
Nh7Kgs6sRSAIbFMSaThQ35c=
=/yuZ
-----END PGP SIGNATURE-----



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group