Table : student_details
Example-1 : If we wish to delete the whole student_details table, it can be done by executing below query.
Query : DELETE FROM student_details; |
Example-2 : If we wish to delete a particular row from the student_details, it can be done by executing below query.
Query : DELETE FROM student_details WHERE Name = ‘Rakesh’; |
Output :
NOTE : As the structure of table remains untouched even after deletion of table data. If we need to insert values in the table again, it can be done without creating a new table and by directly inserting values to the table through INSERT command. |