作业帮 > 综合 > 作业

select uid from T_TABLE Where num='3' and time between like

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/09 17:10:49
select uid from T_TABLE Where num='3' and time between like '200701%' and like '200702%'
我这条语句有错,请各位写出正确查询
本意是查uid,条件是 num=3 和 时间time 在2007年1月 到 2007年2月 之间
between和like是不是不能一起用,怎么查好呢?
我的time字段是精确到秒的,所以要提出月份的
我的数据库不是SQL SERVER的
谢谢你的回答,期待更准确的答案
直接限定time在1月和2月不就可以了?
select uid from T_TABLE Where num='3' and time >= '20070101' and time