我想使用SQLAlchemy创建以下语句。它可以在数据库上完全执行,因此不涉及到sqlalchemy层的任何数据检索。UPDATE summary s SET (sum_x, sum_y, avg_x, avg_y) =
(SELECT sum(x), sum(y), avg(x), avg(y) FROM data
我试图在SQLAlchemy中复制这个查询:sum(case when country = 'USA' or country like '%merica' then dollarselse 0 end),FROM Spend GROUP BY Spend.date
([(<sqlalchemy.sql.expre