好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Mysql中错误使用SQL语句Groupby被兼容的情况

首先创建数据库hncu,建立stud表格。

添加数据:

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,'北京'); 

查看更多关于Mysql中错误使用SQL语句Groupby被兼容的情况的详细内容...

  阅读:49次