ASP查询指定日期的数据 怎么写?

2025-02-27 01:00:25
推荐回答(3个)
回答1:

2011-06-20至2011-06-20就不能用等于了 得用 sql="select * from CHECKINOUT where userid="&request.querystring("zhou_leijie_jie") & " and checktime between 2011-06-20 and 2011-06-30"

回答2:

ACCESS:
checktime between '#2011-06-20#' and '#2011-06-30#'

SQL:
checktime between '2011-06-20' and '2011-06-30'

回答3:

checktime> '#2011-06-20#' and checktime< '#2011-06-30#'
or
checktime between '#2011-06-20#' and '#2011-06-30#'