sql判断小时

select datediff(hh,'2008-05-24 13:25:16.857',GetDate()) as 小时 from [user] where UserName'123'
posted on 2008-05-24 13:57  freexiaoyu  阅读(496)  评论(0编辑  收藏  举报