Chinaunix首页 | 论坛 | 博客
  • 博客访问: 326655
  • 博文数量: 206
  • 博客积分: 1040
  • 博客等级: 少尉
  • 技术积分: 1756
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-09 17:22
文章分类

全部博文(206)

文章存档

2015年(3)

2014年(147)

2013年(2)

2012年(54)

我的朋友

分类: PHP

2013-03-05 15:29:17

1、报错误:

Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause

select user,type,number,sum(price) as aa from reim where number=2 and type=1 and user='aa'

Filename: C:\wamp\www\itsod1\system\database\DB_driver.php

解决方法:加上group by 。查询统计汇总在后面一定要有group by

阅读(949) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~