![]() |
VOOZH | about |
Deleting data in SQLite is achieved using the DELETE statement, which can optionally be combined with a WHERE clause to specify which rows to delete.
DELETE FROM table_name [WHERE Clause]
First, we need to create a database and table to demonstrate DELETE clause, here's how we can do it:
Output:
👁 ImageNow let's look at how to delete data from the GEEK table. We'll cover two examples: deleting specific rows based on a condition and deleting all rows.
In this example, we'll delete rows where the Score is less than 15.
Output:
👁 ImageIn this example, we'll delete all the rows from the GEEK table.