On 25-Apr-01 [EMAIL PROTECTED] wrote:
> I used Access (sorry) to develop a db design. I then used ODBC to export it
> to MySQL. The tables all lost their primary key definitions. Now I need to
> set them back to be a primary key. I have tried:
> ALTER TABLE def_categories MODIFY ID PRIMARY KEY
ALTER TABLE def_categories add key PRIMARY KEY(ID)
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
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