What's the difference between DELETE TABLE and TRUNCATE TABLE
commands?

Answers were Sorted based on User's Feedback



What's the difference between DELETE TABLE and TRUNCATE TABLE commands?..

Answer / naveen reddy

delete table deletes entire table if we want to delete or else we can delete specific column or row.

if we wish to simply get rid of the data but not the table itself? For this, we can use the TRUNCATE TABLE command. The syntax for TRUNCATE TABLE is

TRUNCATE TABLE "table_name"

Is This Answer Correct ?    1 Yes 0 No

What's the difference between DELETE TABLE and TRUNCATE TABLE commands?..

Answer / kalyan

truncate table means structure of table cannot deleted but
it deletes the data in the table. And Delete command deletes
the entire table with data.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,i++); }

9 Answers   CTS, Wipro,


Program to simulate second clock

2 Answers  


write a program to swap two variables a=5 , b= 10 without using third variable

5 Answers  


to find the closest pair

0 Answers   Infosys,


What is malloc and calloc?

0 Answers  






By using C language input a date into it and if it is right?

0 Answers   Aricent,


Write a program to swap two numbers without using third variable in c?

0 Answers  


Can you add pointers together? Why would you?

0 Answers  


Can we declare function inside main?

0 Answers  


Write a C program to find the smallest of three integers, without using any of the comparision operators.

7 Answers   TCS,


Write a program to print fibonacci series without using recursion?

0 Answers  


How can you tell whether a program was compiled using c versus c++?

0 Answers  


Categories