From derby-commits-return-13121-apmail-db-derby-commits-archive=db.apache.org@db.apache.org Tue Sep 21 04:41:14 2010 Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 32275 invoked from network); 21 Sep 2010 04:41:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Sep 2010 04:41:14 -0000 Received: (qmail 23385 invoked by uid 500); 21 Sep 2010 04:41:14 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 23310 invoked by uid 500); 21 Sep 2010 04:41:12 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 23303 invoked by uid 99); 21 Sep 2010 04:41:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 04:41:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 04:41:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 98FDC23889EA; Tue, 21 Sep 2010 04:40:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r999219 - in /db/derby/docs/trunk/src/ref: refderby.ditamap rrefsqljtruncatetable.dita Date: Tue, 21 Sep 2010 04:40:50 -0000 To: derby-commits@db.apache.org From: bpendleton@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100921044050.98FDC23889EA@eris.apache.org> Author: bpendleton Date: Tue Sep 21 04:40:50 2010 New Revision: 999219 URL: http://svn.apache.org/viewvc?rev=999219&view=rev Log: DERBY-4802: Document the TRUNCATE TABLE command This change adds a page to the reference manual describing the syntax and primary behaviors of the TRUNCATE TABLE command. Added: db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita (with props) Modified: db/derby/docs/trunk/src/ref/refderby.ditamap Modified: db/derby/docs/trunk/src/ref/refderby.ditamap URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ref/refderby.ditamap?rev=999219&r1=999218&r2=999219&view=diff ============================================================================== --- db/derby/docs/trunk/src/ref/refderby.ditamap (original) +++ db/derby/docs/trunk/src/ref/refderby.ditamap Tue Sep 21 04:40:50 2010 @@ -214,6 +214,7 @@ limitations under the License. + Added: db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita?rev=999219&view=auto ============================================================================== --- db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita (added) +++ db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita Tue Sep 21 04:40:50 2010 @@ -0,0 +1,46 @@ + + + + + +TRUNCATE TABLE statement + +TRUNCATE TABLE statementSQL +statementsTRUNCATE TABLEtablesspace + + + +

The TRUNCATE TABLE statement allows you to quickly remove all +content from the specified table and return it to its initial empty state.

+

To truncate a table, you must either +be the +database owner +or the table owner.

+

You cannot truncate system tables with this statement.

+Syntax TRUNCATE TABLE table-Name + +Examples +

To truncate the entire Flights table, +use the following statement: + +TRUNCATE TABLE Flights; +

+
+
+
Propchange: db/derby/docs/trunk/src/ref/rrefsqljtruncatetable.dita ------------------------------------------------------------------------------ svn:eol-style = native