UrbanPro

Learn SQL Programming from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the difference between the TRUNCATE and Drop command in SQL?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

Trainer

Truncate - for delete all records permanently. Drop - to drop table, columns.
Comments

Tutor

TRUNCATE: The TRUNCATE statement is used to remove all records from a table. It performs the same function as a DELETE statement but without a WHERE clause. However, it does not delete the table from databaseDROP: It is used to remove the data as well as the table from the database.
read more

TRUNCATE: The TRUNCATE statement is used to remove all records from a table. It performs the same function as a DELETE statement but  without a WHERE clause. However, it does not delete the table from database
DROP: It is used to remove the data as well as the table from the database.

read less
Comments

It Professional Trainer With 20 Years of Experience in in Key Aspects of Software Development

* Drop command removes the table from the database along with associated indexes * TRUNCATE is DDL command which can be used to remove all the data from the table and also reset indetity field if it exits in the table.
Comments

View 1 more Answers

Related Questions

How do I become master in SQL server? I am looking for real time case studies to write queries, stored procedures etc.
Hi Komal, Try to command basic SQL statement first. Understand the very basic concepts of DDL , DML and TCL commands.. start with writing SELECT statement with WHERE clause , using aggregate functions...
Komal
0 0
5
I need your help to choose my career as I have three years of gap between my education. I know SQL. Can anyone tell me should I choose MS SQL server or oracle because I am interested in the database? Which one will be better to learn to get into the IT industry? Please help me! Thank you!
As you are strong and interested in SQL, why not to choose ETL Testing? It has a good career ahead in data projects. To survive in the market, you need both Oracle & SQL Server. Actually, both are almost same but are different products.
Santhosh
I want to teach, how can I?
You can teach students Online as well as offline. If you want to teach online you need to have a communicating media.
Yasheela

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Database Origins
The need for a database originates from the fact that computers are dumb devices having batman like abilities which can be smartly be utilised by feeding it the right content. That is, for example, consider...
M

SQL Tips (4 to 6)
SQL tips 4:Avoid INDEX, unless you need to retrieve information quickly. Index will slower insert and update data query.The another way is using sub querySelect MAX(salary)FROM employeeWHERE salary IN(Select...

Truncate, Drop And Delete Commands In SQL
Truncate: Truncate command will delete the Table data only, it keeps the table schema as it is. Table data Can be rollback Example : TRUNCATE TABLE User; Drop: Drop command will delete both...

Looping In Oracle SQL Using Level
We will see about the syntax LEVEL in Oracle sql. If we want to loop through and print a set of values in SQL, LEVEL could come handy. Example query: SELECT 'hi', LEVEL FROM DUALCONNECT BY LEVEL <=...

SQL Union Vs Union ALL
SQL UNION vs UNION ALL Operator Usage UNION: UNION combines the result set of two or more queries into a single result set. UNION removes duplicate records (where all columns in the results are the same). UNION...

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Looking for SQL Programming Training?

Find best SQL Programming Training in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for SQL Programming Classes?

Find best tutors for SQL Programming Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for SQL Programming Classes?

Get started now, by booking a Free Demo Class

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All