~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/truncate.rst

  • Committer: Lee Bieber
  • Date: 2011-01-24 17:20:08 UTC
  • mfrom: (2107.2.1 trunk-bug-703913)
  • mto: This revision was merged to the branch mainline in revision 2109.
  • Revision ID: kalebral@gmail.com-20110124172008-y5maihyoyu7gn18p
Merge Andrew - fix bug 703913: some support-files should be dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TRUNCATE
2
2
========
3
3
 
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
 
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
 
11
8
 
12
9
        TRUNCATE TABLE table_name
13
10