What's the difference between DELETE TABLE and TRUNCATE TABLE
commands?
Answers were Sorted based on User's Feedback
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 |
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 |
Explain how can I convert a string to a number?
How old is c programming language?
How reliable are floating-point comparisons?
Is void a keyword in c?
write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)
Is fortran faster than c?
what are the uses of structure?
Write a program to find the smallest and largest element in a given array in c language
What is the ANSI C Standard?
main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs?
Can we compile a program without main() function?
How variables are declared in c?