显示xsxx.dbf中的所有信息:sele * from xsxx
  只显示姓名和入学成绩:sele 姓名,入学成绩 from xsxx
  显示女生的入学成绩的平均值:
  sele avg(入学成绩) 平均 from xsxx where 性别=“女”
  统计xsxx.dbf中的人数: sele count(*) 人数 from xsxx
  按性别分组:sele * from xsxx group by 性别
  按入学成绩升序排列:sele * from xsxx order by 入学成绩
  显示入学成绩在590到600之间的人的信息:
  sele * from xsxx where 入学成绩 between 590 and 600
  找姓“刘”的: sele * from xsxx where 姓名 like “刘%”
  找名字中有“国”字的,并将结果放在表xsxx_g.dbf中:
  sele * from xsxx where姓名 like “%国%” into table xsxx_g.dbf
  找名字三个字且最后一个字是“国”:
  sele * from xsxx where姓名 like “_ _国”
  显示姓名和年龄:
  sele 姓名,year(date())-year(出生日期) 年龄 from xsxx
  显示计算机和英语专业的学生信息:
  sele * from xsxx where 专业 in ("计算机","英语")
  联接查询(涉及两张或两张以上的表)
  等值联接查询
  查询0206054号学生的各科课程名和成绩
  select 课程名,期中,期末;
  from chji inner join kch on chji.课程代号=kch.课程代号;
  where chji.学号=“0206054”
  或
  select 课程名,期中,期末;
  from chji,kch;
  where chji.课程代号=kch.课程代号.and. chji.学号="0206054"
  查询选修了“数字电路”的学生的姓名和成绩
  SELECT 姓名, 期中, 期末;
  from xsxx,chji, kch;
  where chji.课程代号=kch.课程代号 and kch.课程名="数字电路"
  统计“数字电路”的期末平均成绩
  sele avg(期末) 数字电路的平均成绩;
  from chji inner join kch on chji.课程代号=kch.课程代号 ;
  where kch.课程名="数字电路"