Oracle Truncate Table | Truncate Table - oracle tutorial - sql tutorial




Oracle truncate table

Learn oracle - oracle tutorial - Oracle truncate table - oracle examples - oracle programs

What is TRUNCATE TABLE statement in oracle ?

  • TRUNCATE TABLE statement is used to remove all records from a table in Oracle.
  • It performs the same function as a DELETE statement without a WHERE clause.

Syntax:

TRUNCATE TABLE table_name;
click below button to copy the code. By - oracle tutorial - team

Example

TRUNCATE TABLE wikitechy;

click below button to copy the code. By - oracle tutorial - team

Code Explanation:

 truncate table
  1. TRUNCATE TABLE represents the Oracle Statement .
  2. Wikitechy is the table name which we want to truncate.
  3. Click on the “Run” button to execute the given query.
  4. The Records from the table has been deleted from the Truncate Statement.

Difference between truncate and delete:

  • All the tables' rows, indexes and privileges will also be removed.
  • No DML triggers will be fired.
  • DROP and TRUNCATE are DDL commands,whereas DELETE is a DML command.
  • Therefore DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations cannot be rolled back.

This tutorial provides an indepth knowledge on the following items such as oracle tutorial , sql tutorial , sql , pl sql tutorial , oracle , pl sql , mysql tutorial , sql tutorial for beginners , learn sql , oracle database tutorial , sql query tutorial , oracle dba tutorial , plsql tutorial , oracle tutorial pdf , oracle pl sql tutorial , oracle sql tutorial , sql tutorial point , oracle tutorial for beginners , learn oracle online free , learn oracle online , learning pl sql programming , learn sql online for free , sql learning online , dba oracle tutorial , oracle sql tutorial advanced , oracle 11g dba tutorial with examples , oracle online learning , oracle learning online , how to learn pl sql , sql coding tutorial , sql learning websites , sql basic learning

Related Searches to Oracle Truncate Table

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×