Why is SQLAlchemy execute Update not working
问题 I have the following: @periodic_task(run_every=crontab(minute="*/1")) def PeriodicUpdateAgentLastRica(): query = """update agents inner join (select sims.consignment_agents_id as agents_id, MAX(sims.rica_current_stamp) as last_rica_stamp from sims where sims.rica_current_stamp > DATE_SUB(now(), INTERVAL 3 MONTH) and sims.consignment_agents_id is not NULL group by sims.consignment_agents_id) as dt on dt.agents_id = agents.id set agents.last_rica_stamp = dt.last_rica_stamp""" res = Session