If you insert data by specifying the ID, it is unlikely if it is the primary key, but it can be updated. And if it is not the primary key, then 2 operations can be achieved. The code is similar to the following:
Add as:
model = Model(name='new names')
db.session.add(model)
db.session.commit()
To add, delete, check and modify, just go to the document.
If you insert data by specifying the ID, it is unlikely if it is the primary key, but it can be updated. And if it is not the primary key, then 2 operations can be achieved. The code is similar to the following:
Add as:
Then update to: