In SQL, the DELETE query is used to delete a row from a table. In this tutorial we will show you how to use the delete command to remove one or more rows from a table. The key is to carefully test your query and make sure your WHERE clause targets exactly those desired rows. To do this, we will first write the DELETE query, comment it out using one of the two ways to write a comment in SQL, test the WHERE with a SELECT, then finally execute the DELETE.
In SQL, the DELETE query is used to delete a row from a table. In this tutorial we will show you how to use the delete command to remove one or more rows from a table. The key is to carefully test your query and make sure your WHERE clause targets exactly those desired rows. To do this, we will first write the DELETE query, comment it out using one of the two ways to write a comment in SQL, test the WHERE with a SELECT, then finally execute the DELETE.