给你个查询班级相关的,自己琢磨琢磨

程序代码:
--模糊查询
select * from t_Class where ClassName like '实验%'
select * from t_Class where ClassName like '%班'
select * from t_Class where ClassName like '%八%'
--查询班级表的所有记录
select * from t_Class
--查询班级编号 小于等于5的班级
select * from t_Class where ClassId <= '5'
--查询班级名称 等于实验八班的班级
select * from t_Class where ClassName = '实验八班'