AI engineering glossary · SQL databases

What is DELETE?

DELETE: The statement that removes rows matching a WHERE condition; without one it removes all rows. It is logged row by row, so it can be rolled back and fires triggers, unlike TRUNCATE.

Level: beginnerTopic: SQL databases

DELETE: an example

DELETE FROM sessions WHERE expires_at < NOW(); clears expired login sessions.

Related terms

More SQL databases terms

Where you learn it

DELETE is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.