# 谓词:distinct, limit
# 查看课程中不重复的课程名字
select count(distinct(cname)) from t_course;
# 只查10条数据
select sname, stuno, sex, age from t_student_info limit 0 * 10, 10;
# 在上面的基础上往下查10条
select sname, stuno, sex, age from t_student_info limit 1 * 10, 10;
# 在上面的基础上往下查10条
select sname, stuno, sex, age from t_student_info limit 2 * 10, 10;
其中0 * 10 、1 * 10 、2 * 10 表示起始位置,后续的10 代表查询的数量