jxawgyl 发表于 2008-6-23 11:12
查询系统时间
如何在SQL中指定系统时间:如
select * from RecipeView where time>= '系统时间'
jxyga111 发表于 2008-6-23 14:38
那就是當前時間啊Date 或TIME
jxawgyl 发表于 2008-6-23 15:19
是这样写:select * from RecipeView where executeoffice= 4008 and addtime>=date
不对阿?
jxawgyl 发表于 2008-6-23 15:56
谢了,这样对吧:select * from RecipeView where executeoffice= 4008 and addtime>=dateadd(day,-1,getdate())
比系统时间小1天
jxyga111 发表于 2008-6-23 16:04
你用CONVERT试一试
页:
[1]