[转载] 问个SQL问题# Database - 数据库
l*h
1 楼
【 以下文字转载自 OnTheRoad 讨论区 】
【 原文由 laugh 所发表 】
select f1, f2, f3, sum(f4), f5 from table1 where blah blah
group by f1, f2
这个group by是不是要把所有非f4的fields都放进去?
【 原文由 laugh 所发表 】
select f1, f2, f3, sum(f4), f5 from table1 where blah blah
group by f1, f2
这个group by是不是要把所有非f4的fields都放进去?