p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 (http://p2p.wrox.com/forumdisplay.php?f=476)
-   -   MyISAM with foreign keys? (http://p2p.wrox.com/showthread.php?t=86525)

Stamatis February 1st, 2012 08:24 PM

MyISAM with foreign keys?
 
Hello,

As I know the MyISAM databases don't support the foreign key and references(generally the relationships with these).So why the book wrox php6
uses these keywords (foreign key and references) in the examples with MyISAM Databases?(for example in tryout in p.365).Sorry but i confused...

Thank you

UseLess February 2nd, 2012 08:48 AM

Greetings,

You can get foreign keys to work on a MyISAM db, see the following article.

http://dev.mysql.com/tech-resources/...eign-keys.html

Stamatis February 2nd, 2012 10:54 AM

Hello useless,

In this article shows how to use foreign keys programmatically by using triggers.however in the book examples don't used triggers, only the assign of foreign key.why?


All times are GMT -4. The time now is 09:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.