34,838
社区成员




--这样
select convert(varchar(30),getdate(),120)/*-----------------------
2009-12-07 11:48:58
(1 行受影响)*/
--不带毫秒
select convert(varchar(23),getdate(),120)
/*
-----------------------
2009-12-07 11:48:16
(所影响的行数为 1 行)
*/
--带毫秒
select convert(varchar(23),getdate(),121)
/*
-----------------------
2009-12-07 11:48:16.403
(所影响的行数为 1 行)
*/
--返回现在的点数
select datepart(hh,getdate())