大侠救我,这句SQL哪错了?
vb accessMySQL = "select * from 监理备案 Where [竣工日期] > Date Order By [竣工日期] DESC" --------------------编程问答-------------------- vb access
MySQL = "select * from 监理备案 Where [竣工日期] > " & Date & " Order By [竣工日期] DESC" --------------------编程问答-------------------- vb access
MySQL = "select * from 监理备案 Where [竣工日期] > " & Date & " Order By [竣工日期] DESC"
竣工日期 字段是日期类型
日期格式是2009-1-12
得的结果去不对??
5555555555555555555555555555
大虾,大虾。。。。。。。。。。。。。 --------------------编程问答-------------------- MySQL = "select * from 监理备案 Where [竣工日期] > #"& Date &"# Order By [竣工日期] DESC" --------------------编程问答-------------------- MySQL = "select * from 监理备案 Where [竣工日期] > Date() Order By [竣工日期] DESC" --------------------编程问答-------------------- 注意,access中要用date函数要加括号,VB中不用 --------------------编程问答-------------------- 快结贴吧!阿门~
补充:VB , 基础类