这样做日期型查询为何不行?
我有一个文本输入框,name为texrq,在其中输入日期格式的字符串‘2003-8-21'然后用以下语句查询数据库中的数据
dim temrq
temrq=trim(Request("texrq)
if temrq="" then
temrq="%"
sql="select * from Detail_rk where Rksj like'%"+temrq+"%'"
rs.open sql,conn,1,3
.....
为何查询不到数据库中的数据,这条SQL语句应该怎样写???多谢各位了!