Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

What are the differences between DROP a table and TRUNCATE a table?

PHP Interview Question
PHP Interview Question

Answer:

DROP TABLE table_name - This will delete the table and its data.

TRUNCATE TABLE table_name - This will delete the data of the table, but not the table definition.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
Are objects passed by value or by reference?What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods?