Re: PRIMARY KEY and UNIQUE
От
Darren Ferguson
Тема
Re: PRIMARY KEY and UNIQUE
Дата
Msg-id
Pine.LNX.4.10.10202141028210.3159-100000@thread.crystalballinc.com
Ответ на
PRIMARY KEY and UNIQUE (Erwin Ambrosch)
Список
Дерево обсуждения
PRIMARY KEY and UNIQUE Erwin Ambrosch <ambre@ebutec.com>
Re: PRIMARY KEY and UNIQUE Andrew Gould <andrewgould@yahoo.com>
Re: PRIMARY KEY and UNIQUE "Liam DeMasi" <ldemasi@acsinc-nj.com>
Re: PRIMARY KEY and UNIQUE Andrew Gould <andrewgould@yahoo.com>
Re: PRIMARY KEY and UNIQUE Darren Ferguson <darren@crystalballinc.com>
Re: PRIMARY KEY and UNIQUE Martín Marqués <martin@bugs.unl.edu.ar>
Re: PRIMARY KEY and UNIQUE Martín Marqués <martin@bugs.unl.edu.ar>
If it is a primary key then it will automatically be UNIQUE. You do not need the unique next to the VARCHAR in this situation Darren On Thu, 14 Feb 2002, Erwin Ambrosch wrote: > Hi, > > I have a such a table. > > CREATE TABLE int_article ( > name VARCHAR(12) UNIQUE > headline TEXT, > summary TEXT, > main TEXT, > footer TEXT, > PRIMARY KEY (name) > ); > > Is the UNIQUE constraint neccessary, because if have specified the column > name to be the primary key. > > Thanks in advance > Erwin > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
В списке pgsql-general по дате отправления