<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Delete (SQL) - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Delete_(SQL)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Delete_%28SQL%29&amp;p=8">3.Next</a>
</p>
<p>much slower than TRUNCATE<br/>
* You can undo the operation of removing records by using the ROLLBACK command<br/>
* DELETE requires a shared table lock<br/>
* Triggers fire<br/>
* DELETE can be used in the case of: database link<br/>
* DELETE returns the number of records deleted<br/>
* Transaction log - DELETE needs to read records, check constraints, update block, update indexes, and generate redo / undo. All of this takes time, hence it takes time much longer than with TRUNCATE<br/>
* reduces performance during execution - each record in</p><p>
<a accesskey="1" href="page.php?w=Delete_(SQL)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Delete_%28SQL%29&amp;p=8">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
