单项选择题

在ACCESS “学生”表中有姓名、性别、专业名称、出生年月、身份证字段。查找身份证中第4-6位为102的记录,正确的SQL语句是()。

A.select *from 学生Where left(身份证,3)=“102”
B.select *from 学生Where Mid(身份证,4,6)=“102”
C.select *from 学生Where Mid(身份证)=“102”
D.select *from 学生Where Mid(身份证,4,3)=“102”

微信扫码免费搜题