AI智能推荐题库-试题通 AI智能整理导入题库-试题通
×
首页 题库中心 网络技术考试题库 题目详情
CA6511188AB00001EE5A1160A3321ACB
网络技术考试题库
4,538
单选题

MySQL中,查询2000年1月出生的所有学生信息,正确的SQL语句是()。

A
select * from student where birthdate>='2000-1-1' && birthdate<='2000-1-31'
B
select * from student where birthdate>='2000-1-1' & birthdate<='2000-1-31'
C
select * from student where birthdate>='2000-1-1' and birthdate<='2000-1-31'
D
select * from student where birthdate>='2000-1-1' or birthdate<='2000-1-31'

答案解析

正确答案:C

解析:

MySQL中,查询2000年1月出生的所有学生信息,正确的SQL语句是()。 答案解析:正确答案是C。在这个问题中,我们需要查询生日在2000年1月的学生信息。select * from student where birthdate>='2000-1-1' and birthdate<='2000-1-31'使用了逻辑运算符"and"来确保生日在指定范围内,因此选项C是正确的。其他选项使用了不正确的运算符或语法。

相关知识点:

日期用and连范围

网络技术考试题库

扫码进入小程序
随时随地练习

关闭登录弹窗
专为自学备考人员打造
勾选图标
自助导入本地题库
勾选图标
多种刷题考试模式
勾选图标
本地离线答题搜题
勾选图标
扫码考试方便快捷
勾选图标
海量试题每日更新
波浪装饰图
欢迎登录试题通
可以使用以下方式扫码登陆
APP图标
使用APP登录
微信图标
使用微信登录
试题通小程序二维码
联系电话:
400-660-3606
试题通企业微信二维码