Delete just one

Report a typo

You are working on a table named Dog. This table has the following fields: id, name, breed, age.

After filling it, you end up with the following result:

Dog datatable

Now, you want to delete the first row and write the following piece of code:

query = session.query(Dog)
query.filter(Dog.name == "Max").delete()

session.commit()

What will happen to the rows in this table?

Select one option from the list
___

Create a free account to access the full topic