<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Deleting Data from a Relational Database?</title>
	<atom:link href="http://www.computerne.ws/data/deleting-data-from-a-relational-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computerne.ws/data/deleting-data-from-a-relational-database/</link>
	<description>Hard drive restore</description>
	<lastBuildDate>Mon, 19 Jul 2010 11:22:13 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: oracle128au</title>
		<link>http://www.computerne.ws/data/deleting-data-from-a-relational-database/comment-page-1/#comment-1066</link>
		<dc:creator>oracle128au</dc:creator>
		<pubDate>Wed, 27 Aug 2008 11:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.computerne.ws/data/deleting-data-from-a-relational-database#comment-1066</guid>
		<description>The answer is easy. If you&#039;re using a real RDBMS, it already has built in handling of maintaining data integrity on foreign key relationships. Eg. in Oracle, it won&#039;t let you delete referenced data, simple as that. 

Eg2 in MySQL, depending on the table engine used, you can choose between Restrict (same behaviour as Oracle), Cascade (deleting records from a table will also automatically delete any records that reference it), or Update (deleting records from a table will update the records that reference that data, setting the foreign key to NULL). This, too, is all inbuilt and doesn&#039;t require any specific application-level relationship validation, or any kind of assessment. They&#039;re standard features.

Of course, this all assumes you&#039;ve set up your foreign key relationships correctly. If you haven&#039;t, you&#039;re doing it wrong. If your RDBMS doesn&#039;t support relationships, you&#039;re doing it wrong. In these cases, performing your assessment is the least of your worries.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>The answer is easy. If you&#8217;re using a real RDBMS, it already has built in handling of maintaining data integrity on foreign key relationships. Eg. in Oracle, it won&#8217;t let you delete referenced data, simple as that. </p>
<p>Eg2 in MySQL, depending on the table engine used, you can choose between Restrict (same behaviour as Oracle), Cascade (deleting records from a table will also automatically delete any records that reference it), or Update (deleting records from a table will update the records that reference that data, setting the foreign key to NULL). This, too, is all inbuilt and doesn&#8217;t require any specific application-level relationship validation, or any kind of assessment. They&#8217;re standard features.</p>
<p>Of course, this all assumes you&#8217;ve set up your foreign key relationships correctly. If you haven&#8217;t, you&#8217;re doing it wrong. If your RDBMS doesn&#8217;t support relationships, you&#8217;re doing it wrong. In these cases, performing your assessment is the least of your worries.<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicola</title>
		<link>http://www.computerne.ws/data/deleting-data-from-a-relational-database/comment-page-1/#comment-1065</link>
		<dc:creator>Nicola</dc:creator>
		<pubDate>Wed, 27 Aug 2008 11:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.computerne.ws/data/deleting-data-from-a-relational-database#comment-1065</guid>
		<description>it is clear that you do not want to get any answer!

How can we support you without a model view of the environment around your table??

&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>it is clear that you do not want to get any answer!</p>
<p>How can we support you without a model view of the environment around your table??</p>
<p><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>
