|
Re: Can't create FOREIGN KEY restraints on InnoDb tables: msg#00667db.mysql.general
Hi! NOT NULL does not prevent the creation of a foreign key constraint. I think the problem was that Andy did not create an index explicitly on the foreign key (he created only on the referenced key). Regards, Heikki Innobase Oy ----- Original Message ----- From: ""Roger Baklund"" <roger@xxxxxxxxxxx> Newsgroups: mailing.database.mysql Sent: Tuesday, June 25, 2002 1:16 AM Subject: Re: Can't create FOREIGN KEY restraints on InnoDb tables > * andy@xxxxxxxxxxx > [...] > > The referred to keys are the same type and are indexed (they are > [...] > > CREATE TABLE genres ( > > genre_id SMALLINT NOT NULL PRIMARY KEY, > [...] > > genre_id SMALLINT, > > ...does not look the same to me... ;) > > -- > Roger > sql > > --------------------------------------------------------------------- > 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 <mysql-thread112891@xxxxxxxxxxxxxxx> > To unsubscribe, e-mail <mysql-unsubscribe-mysql=freebsd.csie.nctu.edu.tw@xxxxxxxxxxxxxxx> > 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 <mysql-thread112914@xxxxxxxxxxxxxxx> To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=m.gmane.org@xxxxxxxxxxxxxxx> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to access mysqladmin from IE?: 00667, Dicky Wahyu Purnomo |
|---|---|
| Next by Date: | g++ 2.96 with Mysql++ 1.7.9: 00667, Poizot Emmanuel |
| Previous by Thread: | Re: Can't create FOREIGN KEY restraints on InnoDb tablesi: 00667, Roger Baklund |
| Next by Thread: | Re: Re: Can't create FOREIGN KEY restraints on InnoDb tables: 00667, Andy Dustman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | Mail Home | sitemap | FAQ | advertise |