DQL查询语言
-- 查询所有的学生
select * from student
-- 查询指定字段
select `studentId`,`studentName` from student
-- 别名 as 或空格 字段、表都可以起别名
select `studentId` as 学号,`studentName` 学生姓名 from student as s
-- 函数 concat(a,b)
select concat('姓名:',studentName) as 新名字 from student
-- 查询出来的结果和姓名拼接起来
去重 distinct
select distinct `studentId` from result
select @@auto_increment_increment -- 查询自增的步长
-- 学员考试成绩+1分后查看
select `studentId`,`studentScore`+1 AS '提分后' from result