~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/truncate.rst

  • Committer: Brian Aker
  • Date: 2010-12-08 20:27:54 UTC
  • mfrom: (1945.3.9 drizzle)
  • Revision ID: brian@tangent.org-20101208202754-vlmv7nafvktezfe6
Merge Marisa, docs changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TRUNCATE
2
2
========
3
3
 
4
 
TRUNCATE TABLE table_name
 
4
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. ::
5
5
 
6
 
This will delete all data in a table but unlike a DROP TABLE it will keep all counters, such as a SERIAL, in place.
 
6
        TRUNCATE TABLE table_name