1
對於SQLAlchemy的工作方式,我仍然感到困惑。截至目前,我有一個看起來像這樣的查詢在Flask-SQLAlchemy中選擇計數
SELECT cast(a.product_id as bigint) id, cast(count(a.product_id) as bigint) itemsSold, cast(b.product_name as character varying)
from transaction_details a
left join product b
on a.product_id = b.product_id
group by a.product_id, b.product_name
order by itemsSold desc;
我不太確定這是如何轉換爲Flask壽。
最好的:)謝謝你這... – 2013-02-22 03:43:50