SQL语句中使用日期时间类型时应该注意的一点

如果基于ACCESS数据库,应该是:
select * from table where addtime>= #"&request.form("aaa")&" # and addtime<= #"&&request.form("bbb")" #

如果基于SQLserver数据库,应该是:
select * from table where addtime>= '"&request.form("aaa")&" ' and addtime<= '"&&request.form("bbb")" '

你可能感兴趣的:(sql语句)