我用asp在access里面的查询语句很轻松的做出时间段的查询了,
str="select * from ycjh where sqsj between '"&sqsj&"' and '"&sqsj1&"' order by sqsj desc"
我现在的问题是
我在oracle的tdyx的表里有一字段是varchar2(20)存的是now(),然后我在写语句的时候用了
date1=date()
str="select * from ycjh where sqsj>'"& date()&"' order by bh desc"
记录选不出来,我该怎么解决日期和字符串的查询问题呢?
还有就是to_date()等函数在asp操纵的语句里怎么不好用?