After the database is updated, the updated value cannot be queried in time [The value of the sqlalchemy database is updated, but the query result is not updated] solution

Reference: https://blog.csdn.net/qq_41452937/article/details/104729851

 

It is important to note: using the sqlalchemy framework, you must execute [db_session.commit()] to ensure that your database data is the latest [including query data] before adding, deleting, modifying and checking.

 

Reference: https://blog.csdn.net/weixin_43343144/article/details/104438805

Guess you like

Origin blog.csdn.net/weixin_43343144/article/details/112253438