Deleting rows from a table

Syntax:

DELETE FROM table_name
WHERE condition;

Always treat deleting commands with extreme caution

In this case always supply a where clause so you don’t end up deleting something you were not supposed to delete. As a fail safe be sure to create a copy of the table before you delete.



Source:




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • 6 months a data engineer…
  • Failing forward; Lessons from Airflow error alerts.
  • Learning while working.
  • Can Machine Learning Help Predict Heart Disease? A Data Science Exploration
  • Predicting House Prices; MLR vs RFR