这个sql语句有什么错误啊,不明白

theninthstar 2004-05-14 10:16:28
select * from info where datediff (day,Addtime,getdate())<=30
Addtime为日期时间型

Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft JET Database Engine 错误 '80040e14'

表达式中 'getdate' 函数未定义。

/website/ad/adinfo/search.asp,行33
...全文
35 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
woodywjl 2004-05-14
  • 打赏
  • 举报
回复
getdate()应该不对吧,应该是date,getdate返回星期信息
Cloria817 2004-05-14
  • 打赏
  • 举报
回复
select * from info where datediff ('d',Addtime,getdate())<=30
应该这个写这个sql语句

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧