select st_id from students where csrq >= '"+ 2001-6-1 +"' and csrq<='"+ 2006-6-10 +"'

解决方案 »

  1.   

    select * from table whre thedate > cast('2006-05-01' as date) and thedate<cast('2006-08-08' as date)
      

  2.   

    注意,上面的语句当thedate字段是日期型的才成立
      

  3.   

    "select st_id from students where csrq >=cast( '"+ 2001-6-1 +"' as date) and csrq<=cast('"+ 2006-6-10 +"' as date)"
      

  4.   

    jimu8130(荷兰走了) 你好:我这csrq是字符型的
      

  5.   

    包括数据库里的存储的内容和SQL语句