create table stud(
sno varchar(30) not null primary key,
sname varchar(30) not null,
age int,
saddress varchar(30)
);
INSERT INTO stud VALUES('1001','Tom',22,'湖南益阳');
INSERT INTO stud VALUES('1002','Jack',23,'益阳');
INSERT INTO stud VALUES('1003','李白',22,'益阳');
INSERT INTO stud VALUES('1004','王五',24,'中国北京');
INSERT INTO stud VALUES('1005','张三',22,'益阳');
INSERT INTO stud VALUES('1006','张四',23,'益阳');
INSERT INTO stud VALUES('1007','李四',22,'湖南益阳');
INSERT INTO stud VALUES('1008','刘备',24,'北京');
< 喎�"/kf/ware/vc/" target="_blank" class="keylink">vcD4NCjxwcmUgY2xhc3M9"brush:sql;"> SELECT * FROM stud GROUP BY saddress;
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hncu.stud.sno' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT saddress as 平均年龄 FROM stud GROUP BY saddress;
SELECT * FROM stud GROUP BY saddress;
select a,b,c from table_name group by a,b,c,d; select a,b from table_name group by a,b,c; select a,max(a) from table_name group by a,b,c;
select a,b,c from table_name group by a,b; select a,b,c from table_name group by a;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有