查询 student 表中至少有 2 名男生的 class 。 -- 查看学生表信息 SELECT * FROM student; +-----+-----------+-----+------------...
以 class 和 birthday 从大到小的顺序查询 student 表。 SELECT * FROM student ORDER BY class DESC, birthday; +-----+-----------+-----&...
查询 student 表中不姓 "王" 的同学记录。 -- NOT: 取反 -- LIKE: 模糊查询 mysql> SELECT * FROM student WHERE name NOT LIKE '王%...