Jump to content

User:Gelbard/Sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Gelbard (talk | contribs)
Created page with 'In SQL, the '''<code>TRUNCATE</code>''' statement removes all the data from a table. The <code>TRUNCATE</code> statement is not actually a part of the SQL s...'
 
Gelbard (talk | contribs)
No edit summary
Line 7: Line 7:
{{databases}}
{{databases}}


[[Category:SQL statements]]
<nowiki>[[Category:SQL statements]]




{{compu-lang-stub}}
{{compu-lang-stub}}</nowiki>

Revision as of 02:02, 6 April 2007

In SQL, the TRUNCATE statement removes all the data from a table. The TRUNCATE statement is not actually a part of the SQL standard, but many relational database management systems implement it. It is equivalent in function to a DELETE FROM my table; statement. However, on some systems, it is implemented differently.

See also

In SQL Truncate statement doesn't delete the content of a table which is to be truncated while it removes the address of the table from the list containing addresses to identify the table. That's why Truncate statement is 300 times faster than Delete statement of SQL because Delete statement removes the content of table one-by-one[specify].

Truncate Table [schema][.] <table_name>;

[[Category:SQL statements]] {{compu-lang-stub}}