MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will be the result If you will execute the following command:DELETE FROM emp;
A
The table will be deleted.
B
All the records will be deleted.
C
The structure of the table will be displayed.
D
The statement will not execute.
Explanation: 

Detailed explanation-1: -We can also use the TRUNCATE command to delete all the records from a table.

Detailed explanation-2: -If you run a DELETE statement with no conditions in the WHERE clause, all of the records from the table will be deleted.

Detailed explanation-3: -The DELETE Statement in SQL is used to delete existing records from a table.

Detailed explanation-4: -The DELETE command is used to delete existing records in a table.

There is 1 question to complete.