<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038109" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038109</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/referential-integrity#comment-1217798</link>
    <description> &lt;p&gt;Or even if you have PostgreSQL available you can do &lt;a href=&quot;http://www.postgresql.org/docs/8.2/interactive/ddl-constraints.html&quot; class=&quot;bb-url&quot;&gt;foreign key constraints&lt;/a&gt;, just a thought.&lt;/p&gt;
&lt;p&gt;It may well be erroring because your table is of type MyISAM instead of InnoDB.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;matt wrote:&lt;/strong&gt; I think it is really useful, especially when you have clients working directly with the data, and you don&#039;t want them to screw stuff up.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It is pretty useful in Access, MySQL is a totally different product however. A user generally has no idea that MySQL is even behind the interface they&#039;re using, let alone having full access to the fiddle with the tables! :shock:&lt;/p&gt;
&lt;p&gt;Generally I believe the policy is that the programmer will sort out stuff like foreign key constraints in the business rules (the C bit in &lt;a href=&quot;http://www.google.com/search?client=opera&amp;amp;rls=en&amp;amp;q=define:mvc&amp;amp;sourceid=opera&amp;amp;ie=utf-8&amp;amp;oe=utf-8&quot; class=&quot;bb-url&quot;&gt;MVC&lt;/a&gt;) of their application. Saying that it would be quite handy to have better support for this sort of thing, on the other hand I would never condone allowing users to fiddle with the underlying tables in anything more than an small Access database. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Apr 2007 20:13:28 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1217798 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/referential-integrity#comment-1217793</link>
    <description> &lt;p&gt;It forces you to enter in valid data. So it&#039;s harder to make mistakes. If I had two tables that I wanted to create a relationship with, the primary key (ID) of tblApple is the foreign key on tblOrange. MySQL would not allow me to enter in a bad foreign key in tblOrange; an ID that didn&#039;t exist in tblApple. I use it a lot in MS Access. It also allows you to do a cascade delete so if you wanted to delete everything related to the ID 5, you could delete all the information on it in one shot. I think it is really useful, especially when you have clients working directly with the data, and you don&#039;t want them to screw stuff up.&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Apr 2007 17:47:46 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1217793 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/referential-integrity#comment-1217788</link>
    <description> &lt;p&gt;Lol... I&#039;ve been using MySQL for a few years now and never come across this. Although I use primary/foreign keys to join tables and whatnot I didn&#039;t realise you could actually do this. What benefits does this method have to not doing it?&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Apr 2007 17:28:52 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1217788 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/referential-integrity#comment-1217782</link>
    <description> &lt;p&gt;Are You using InnoDB or MyiSAM?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html&quot; class=&quot;bb-url&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; InnoDB allows you to add a new foreign key constraint to a table by using ALTER TABLE:&lt;/p&gt;
&lt;p&gt;ALTER TABLE tbl_name&lt;br /&gt;
    ADD [CONSTRAINT symbol] FOREIGN KEY [id] (index_col_name, ...)&lt;br /&gt;
    REFERENCES tbl_name (index_col_name, ...)&lt;br /&gt;
    [ON DELETE {RESTRICT | CASCADE | SET NULL | NO ACTION}]&lt;br /&gt;
    [ON UPDATE {RESTRICT | CASCADE | SET NULL | NO ACTION}]&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Apr 2007 16:55:48 +0000</pubDate>
 <dc:creator>ChadR</dc:creator>
 <guid isPermaLink="false">comment 1217782 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/referential-integrity#comment-1217710</link>
    <description> &lt;p&gt;well i remember using one of those free mysql manager to get the job done. It too darn troublesome to remember all those alter codes&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Apr 2007 04:06:14 +0000</pubDate>
 <dc:creator>bhammer</dc:creator>
 <guid isPermaLink="false">comment 1217710 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
