From: Dan Nelson Date: January 9 2002 10:08pm Subject: Re: primary key that doesn't autoincrement List-Archive: http://lists.mysql.com/mysql/95893 Message-Id: <20020109220835.GA94285@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In the last episode (Jan 09), D Woods said: > I'm a novice at setting up a mysql database and don't know the answer to > this. I usually set up my primary keys as autoincrementing ID fields. Now I > need to have a primary key that isn't an autoincrementing field as I want to > store the CFTOKEN and use it as the primary key. Can I not have a > non-autoincrementing primary key in mysql? Sure. Just leave off the AUTO_INCREMENT when you create the field. -- Dan Nelson dnelson@stripped