From: Martijn Tonies Date: December 28 2004 9:27pm Subject: Re: unique key <-> primary key List-Archive: http://lists.mysql.com/mysql/177778 Message-Id: <004301c4ed24$02fd0b40$3902a8c0@martijnws> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, > I have two tables, seemigly very similar setup; the primary key is the > combination of two columns. With mysqldump, however, the table > definition of the two tables looks different. > > Mysqldump on table 1 says > ... > UNIQUE KEY HONstid (HONstid,HONname) > whereas on table 2 it says > ... > PRIMARY KEY (IMstid,IMfnum) > > What is the difference? Is there any? A table can have only 1 primary key, but multiple unique constraints. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server Upscene Productions http://www.upscene.com