TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rollup for multiple fields in MySQL

4 点作者 sGrabber大约 12 年前
I am able to run rollup for single field but unable to do for multiple fields in MySQL. Any idea how can we do rollup on multiple fields

2 条评论

mooism2大约 12 年前
I have no idea what this even means.<p>Try asking on <a href="http://dba.stackexchange.com" rel="nofollow">http://dba.stackexchange.com</a> if this is a database administration question, or on <a href="http://stackoverflow.com" rel="nofollow">http://stackoverflow.com</a> if it is a programming question.
评论 #5468722 未加载
lazyfunctor大约 12 年前
I am not sure if I get your question. I think this query should work<p>"select country, state, city, SUM(sales), SUM(profit) from foo group by country, state, city with rollup;"<p>for a table with country, state, city, sales, profit as columns
评论 #5469790 未加载