标题:关于SQL 语句的问题 郁闷!!???/
取消只看楼主
melack
Rank: 1
等 级:新手上路
帖 子:230
专家分:0
注 册:2006-9-27
 问题点数:0 回复次数:0 
关于SQL 语句的问题 郁闷!!???/

if time1="all" then
sql="select * from pnews where h_gyxx like '%"&key&"%' order by id desc"
elseif time1="one" then
sql="select * from pnews where h_gyxx like '%"&key&"%'and h_fbtime=date() order by id desc"
elseif time1="two" then
sql="select * from pnews where h_gyxx like '%"&key&"%'and datediff('d',h_fbtime,"&date()&")<3"
为什么这句总是搜索不对呢??/??
ACCESS 数据库 h_fbtime类型是日期
高手帮我看看

搜索更多相关主题的帖子: 语句 SQL 
2006-11-20 09:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-104120-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.053500 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved