直入正题吧:首先创建一张 students 表
create table students( id int primary key auto_increment, age int, name varchar(20), city varchar(20) ) character set utf8; insert into students values(null, 22, ‘赵四‘, ‘杭州‘); insert into students values(null, 16, ‘刘能‘, ‘上海‘); insert into students values(null, 20, ‘谢广坤‘, ‘深圳‘); insert into students values(null, 21, ‘刘美兰‘, ‘北京‘); insert into students values(null, 20, ‘宋晓峰‘, ‘湖北‘); insert into students values(null, 21, ‘谢大脚‘, ‘江苏‘); insert into students values(null, 20, ‘苏玉红‘, ‘天津‘); insert into students values(null, 21, ‘陈艳兰‘, ‘云南‘);