当前位置: 代码迷 >> Sql Server >> 查询出生日期的疑义
  详细解决方案

查询出生日期的疑义

热度:11   发布时间:2016-04-24 21:58:16.0
查询出生日期的疑问


直接上图...怎么查询出来的内容都是空的?无论我把日期范围调成多少都是空的

------解决方案--------------------
select * from student where symd between '1900-1-1' and '1999-1-2'

------解决方案--------------------
同上,加上单引号。
------解决方案--------------------
select * from student where symd between '1900-01-01' and '1999-01-02'