If you create in index on your FK then it will be used to optimize the query.
=C= * * Cal Evans * Techno-Mage * http://www.calevans.com * ----- Original Message ----- From: "Kiss Dániel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 9:19 AM Subject: Foreign keys in query optimization > I studied the MySQL and InnoDB manual, but I did not find anything about > the internal usage of foreign keys. > > I mean that I would like to know if foreign keys are used for query > optimizations or functions like that. > Because I think foreign keys should be used not only for keeping the data > integrity of the DB. > > Thanks, > Daniel Kiss > > > > --------------------------------------------------------------------- > 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