Update & Delete

In this lesson, we will discover how to update and delete data from the database.

Update and delete are also basic operations that are performed on a database. So, let’s find out how we perform these operations using the SQLAlchemy ORM.

Update #

The method for updating a record is very straightforward, and you do not have to remember any new commands. It can be achieved in three easy steps.

1. Retrieve the object to update #

First, to update any record that is already present in ...