Re: MySQL and foreign keys
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: MySQL and foreign keys

From: Steve <googlespam@nastysoft.com>
Date: Tue Sep 13 2005 - 17:45:09 CEST

> I was baffled to see that I can make Foreign Keys, but they are actually
> never checked by the mySQL engine.

> Am I mad, or does MySQL not support Foreign Keys?
> And if so: Why is it that MySQL is so popular?

Erwin:

It depends what table type you are using. MySQL lets you specify
foreign keys for compatibility, but ignores them unless you are using
InnoDB tables.

The main reasons for widespread MySQL adoption? It is fast and simple,
it has (or had) better documentation and support, lots of 3rd party
tools. For lightweight web apps where you don't need transactions it is
a good choice.

---
Steve
Received on Tue Oct 18 02:23:02 2005