用一个语句实现查找日期字段位于两个日期中间的记录数目
两个日期是从表单里面取出来的,是不是还要经过什么类型转换呢
我用“where filldate between 变量1 and 变量2” 可是无济于事
请高手给点指导真的很急55555555。。。。。
变量1的格式?
试试 #yyyy-mm-dd#
select count(*) from table where date between date1 and date2