~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/truncate.rst

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TRUNCATE
2
2
========
3
3
 
4
 
FIXME: I don't think the below SERIAL/AUTO_INCREMENT thing below is true.
5
 
 
6
 
This will delete all data in a table but unlike a DROP TABLE it will allow you to keep the table in your database. It deletes the rows but leaves all counters, such as a SERIAL, in place. ::
7
 
 
 
4
.. todo::
 
5
 
 
6
   I don't think the below SERIAL/AUTO_INCREMENT thing below is true.
 
7
 
 
8
This will delete all data in a table but unlike a DROP TABLE it will allow you to keep the table in your database. It deletes the rows but leaves all counters, such as a SERIAL, in place.
 
9
 
 
10
.. code-block:: mysql
8
11
 
9
12
        TRUNCATE TABLE table_name
10
13