Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查询总价的最佳方法是什么?
我想将几个数值相乘并以 $ 为我的数据库中的几个客户显示结果?
谢谢
你的意思是像
SELECT u.user_id, sum(o.total_price) FROM users u INNER JOIN order o ON u.user_id = o.user_id GROUP BY u.user_id