ASP我不懂啊。我就说你那SQL语句的把。
如果 FCREATEDATA是字符型的话。后面的时间需要加引号
select * from t_Case where FCreateDate between '2013-9-14 16:23:40' and '2013-10-14 16:23:40';
如果是日期型的话,那么要把后面的时间转成日期型
select * from t_Case where FCreateDate between to_date('2013-9-14 16:23:40','yyyy-m-dd hh24:mi:ss') and to_date('2013-10-14 16:23:40','yyyy-m-dd hh24:mi:ss')
你的语句有点小问题:
修改为这样的试试:
select * from t_Case where FCreateDate between ‘"&now()&"’ and ‘"&dateadd("m",+1,now())&"’ "
试试,
相应的SQL 应该是这样:
select * from t_Case where FCreateDate between getdate() and dateadd(mm,1,getdate()),如果是具体的时间,则:
select * from t_Case where FCreateDate between '2013-9-14 16:23:40' and '2013-10-14 16:23:40'
要用单撇号包起来。
用引号吧时间括起来