Received: from Batman (batman.hro.nl [145.24.132.154]) by hub.org (8.8.8/8.7.5) with SMTP id DAA26802 for ; Mon, 18 May 1998 03:55:55 -0400 (EDT) Received: from Batman (localhost [127.0.0.1]) by Batman (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id JAA01119 for ; Mon, 18 May 1998 09:48:30 +0200 Sender: seleski@ronix.ptf.hro.nl Message-ID: <355FE7CE.167E@ronix.ptf.hro.nl> Date: Mon, 18 May 1998 09:48:30 +0200 From: Perry Seleski X-Mailer: Mozilla 3.01SGoldC-SGI (X11; I; IRIX 6.3 IP32) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: primary keys Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I would really like to know how I can define a primary key in postgres. The database is for a search engine. The table looks like this: CREATE TABLE Homepages ( URL varchar(80), PageName varchar(80), UserName varchar(40), Keywords varchar(255) ); And I'd like to define the attibute URL as the primary key but I've got no clue on how to do that. Anyone? Thanks in advance, Perry Seleski Rotterdam Art Institute