SQL SERVER怎么获取当前系统时间
1.SQL SERVER怎么获取当前系统时间?select getdate()
--日期转换参数
select CONVERT(varchar,getdate(),120)
--2009-03-1515:10:02
select CONVERT(varchar(12),getdate(),111)
--2009/03/15
select CONVERT(varchar(12),getdate(),112)
--20090315
select CONVERT(varchar(12),getdate(),102)
--2009.03.15
select CONVERT(varchar(12),getdate(),108)
--15:13:26
页:
[1]