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 %d used for?

580


Is exit(status) truly equivalent to returning the same status from main?

583


What is the maximum length of an identifier?

663


How can you increase the size of a dynamically allocated array?

639


praagnovation

1774






How can I swap two values without using a temporary?

612


Describe the header file and its usage in c programming?

616


swap 2 numbers without using third variable?

656


What is define directive?

634


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

665


Explain the properties of union.

607


What is the difference between text files and binary files?

674


How to compare array with pointer in c?

616


application attempts to perform an operation?

1489


What is the use of header?

616