摘要:
select getdate() 结果:2003-12-28 16:52:00.107 select convert(char(8),getdate(),112) 结果:20031228 select convert(char(8),getdate(),108) 结果:16:52:00 select convert(char(8),getdate(),112) ... 阅读全文
摘要:
declare @filename nvarchar(100) set @filename='d:\\dbbak\\test+convert(char(10),getdate(),112) print @filename BACKUP DATABASE [test] TO DISK = @filename WITH NOINIT , NOUNLOAD , NAME = N'test... 阅读全文