Write the command to remove the contents from the Table – EMP such that the structure should
remain, then write the command to remove the structure as well.
Answers
Answered by
0
DELETE FROM employee WHERE id = 100;
To delete all the rows from the employee table, the query would be like,
DELETE FROM employee;
SQL TRUNCATE Statement
The SQL TRUNCATE command is used to delete all the rows from the table and free the space containing the table.
Syntax to TRUNCATE a table:
TRUNCATE TABLE table_name
Similar questions