You actually want the label method. result = dbsession.query(Shares.price, func.sum(Shares.quantity).label("Total sold")) ...
確定! 回上一頁