SQL查询: 如何查找姓王单名学生信息
要查询information表中姓‘王’且单名的学生情况,可用(C)命令。
A Select * From Information Where 姓名 Like ‘王%’
B Select * From Information Where 姓名 = ‘王_ _’
C Select * From Information Where 姓名 Like ‘王_’
D Select * From Information Where 姓名 = ‘王%’
解析:
- '%' 代表任意多个字符,'_' 代表单个字符。
- 选项C中使用
LIKE '王_'正确地匹配了姓‘王’且单名的学生信息。
原文地址: https://www.cveoy.top/t/topic/ngkY 著作权归作者所有。请勿转载和采集!