J'ai une table dans PostgreSQL où le schéma ressemble à ceci:Comment modifier une table PostgreSQL et rendre une colonne unique?
CREATE TABLE "foo_table" (
"id" serial NOT NULL PRIMARY KEY,
"permalink" varchar(200) NOT NULL,
"text" varchar(512) NOT NULL,
"timestamp" timestamp with time zone NOT NULL
)
Maintenant, je veux faire ce permalien unique sur la table par ALTER-tion de la table. Quelqu'un peut-il m'aider avec ça?
TIA
'créer un index unique sur foo_table (permalink) ' –