MySQL数据库查询试题及答案.docVIP

  • 0
  • 0
  • 约2.9千字
  • 约 5页
  • 2026-11-19 发布于河北
  • 举报

MySQL数据库查询试题及答案

1.以下哪个语句可以用于查询名为“students”表中的所有记录?(5分)

A.SELECTFROMstudents;

B.SELECTallFROMstudents;

C.SHOWFROMstudents;

D.LISTFROMstudents;

2.若要查询“students”表中“age”字段大于18的记录,正确的SQL语句是?(5分)

A.SELECTFROMstudentsWHEREage18;

B.SELECTFROMstudentsWHENage18;

C.SELECTFROMstudentsWHEREage=18;

D.SELECTFROMstudentsFORage18;

3.如何查询“students”表中“name”字段以“Li”开头的记录?(5分)

A.SELECTFROMstudentsWHEREname=Li%;

B.SELECTFROMstudentsWHEREnameLIKELi%;

C.SELECTFROMstudentsWHEREnameLIKE%Li;

D.SELECTFROMstudentsWHEREname=%Li;

4.要查询“stud

文档评论(0)

1亿VIP精品文档

相关文档