当天查询??

庄子 2008-07-18 11:02:37
我用SQL SERVER里面通过NOW()函数存储时间, 我现在想以当天为查询条件,该怎么写SELECT语句
...全文
87 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jhwcd 2008-07-18
  • 打赏
  • 举报
回复
select * from tablename where  datediff(day,AddTime,getdate())=0
egg_server 2008-07-18
  • 打赏
  • 举报
回复
strdate=spilt(now()," ")
select * from table where [date] like '%strdate(0)%'
xac17666 2008-07-18
  • 打赏
  • 举报
回复
select * from tablename where datediff(day,begintime,getdate())=0

28,391

社区成员

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

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