表:mytable
字段:mydate (日期型),
保存有记录"2006-11-3 20:13:20","2006-11-5 11:13:15"...等。
我想将数据库中所有“mydate=今天”的记录检索出来,不知道该如何表达,谢谢:)....
dim myRs as new adodb.recordset
sql="select * from mytable where....." '此句不知道该如何表示???
myrs.open sql,mycon,3,2
....
字段:mydate (日期型),
保存有记录"2006-11-3 20:13:20","2006-11-5 11:13:15"...等。
我想将数据库中所有“mydate=今天”的记录检索出来,不知道该如何表达,谢谢:)....
dim myRs as new adodb.recordset
sql="select * from mytable where....." '此句不知道该如何表示???
myrs.open sql,mycon,3,2
....
______________________________________________________________
不行啊!
"Run-time error '-2147217900(80040e14)':表达式中'getdate'函数未定义."
sql="select * from mytable where datediff('d',mydate,now())=0"