access 数据库日期字段的问题 我在里面存的数据格式是:2006-7-14 17:21:52现在我在SQL里面用 select * from table_01 where tdate = datevalue('2006-7-14 17:21:52');数据是有的,但是就是找不到,请问应该怎么写呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我不知道datevalue是什么函数。你不妨试试convert(datetime,'2006-7-14 17:21:52') select * from table_01 where tdate = #2006-7-14 17:21:52# 这样也不行 select tdate from table_01 这t样没有错,select tdate from table_01 where tdate = #2006-7-14 17:21:52# 这样就出错了:parameter 对象被不正确地定义 前后加# 说的是select * from table_01 where tdate = datevalue('#2006-7-14 17:21:52#'); 汗 -_-!! Copy你的Copy错了select * from table_01 where tdate = '#2006-7-14 17:21:52#' 偶的神啊,为什么还是错啊select * from table_01 where tdate = '#2006-7-14 17:21:52#' 这句话还是出错select * from table_01是可以的 就用select * from table_01 where tdate = #2006-7-14 17:21:52#不过要把 ADODataSet/ADOQuery 的 ParamCheck 属性设置为 false to 各位,你们说的我都试了,access字段是日期型的,能insert数据,但是就是不能查找ParamCheck 属性设置为 false,还是出错,出错信息是:标准表达式中数据类型不匹配 可以了,奇怪一样的代码,就好了select * from table_01 where tdate = #2006-7-14 17:21:52#不要加引号ParamCheck 属性设置为 false delphi 如何获得一个函数的返回类型? 这个“题库与试卷系统”倒底怎样才能正确编译啊!? 弹出对话框问题 发钱了,高兴,虽然不多 !送点分给大家 怎样动态获取Columns的所以列? 急!!!怎样在Delphi中显示用FTP下载的文件的进度?(在线等待) 关于画布? ScanLine的优化问题! 大难题啊(treeview),各位大哥来帮帮我啊! 分析delphi自带的com例子,有点不懂,请高手指教 timer如何改变默认的事件处理程序 怎样获取远程Linux系统主机的网卡MAC地址?
这样也不行
select * from table_01 where tdate = #2006-7-14 17:21:52#
不过要把 ADODataSet/ADOQuery 的 ParamCheck 属性设置为 false
ParamCheck 属性设置为 false,还是出错,出错信息是:标准表达式中数据类型不匹配
不要加引号
ParamCheck 属性设置为 false