Rob, > "If you don't have a PRIMARY KEY and some applications ask for the > PRIMARY KEY in your tables, MySQL will return the first UNIQUE key,
> How does any application "ask for the PRIMARY KEY"? Is this an > ODBC call, or are their command line and built-in functions? I > couldn't find this in the documentation. Primarily, this is a feature for ODBC applications like MS Access. I don't know of any other app that really longs to have a primary key for each table, but if there were such apps, MySQL would act as described in the manual (with or without ODBC). Regards, -- Stefan Hinz <[EMAIL PROTECTED]> Geschäftsführer / CEO iConnect GmbH <http://iConnect.de> Heesestr. 6, 12169 Berlin (Germany) Tel: +49 30 7970948-0 Fax: +49 30 7970948-3 ----- Original Message ----- From: "Rob Pecherer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 18, 2003 6:38 PM Subject: PRIMARY KEY > According to the MySQL documentation (Section 6.5.3, CREATE TABLE syntax): > > "If you don't have a PRIMARY KEY and some applications ask for the > PRIMARY KEY in your tables, MySQL will return the first UNIQUE key, > which doesn't have any NULL columns, as the PRIMARY KEY." > > How does any application "ask for the PRIMARY KEY"? Is this an > ODBC call, or are their command line and built-in functions? I > couldn't find this in the documentation. > > Rob > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php