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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between if else and switchstatement

1311


Why is c called a structured programming language?

675


Why is python slower than c?

600


What do you know about the use of bit field?

612


What are dangling pointers? How are dangling pointers different from memory leaks?

621






On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664


What is hash table in c?

574


Why c is called top down?

626


What does c value mean?

627


When c language was developed?

637


What does int main () mean?

549


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

655


How can I write a function that takes a format string and a variable number of arguments?

605


How can type-insensitive macros be created?

695


Why do we need functions in c?

556