1 DECLARE @d1 date, @t1 time, @dt1 datetime; 2 SET @d1 = GETDATE(); 3 SET @t1 = GETDATE(); 4 SET @dt1 = GETDATE(); 5 select @d1 date格式,@t1 time格式,@dt1 datetim格式
时间: 2024-10-27 00:51:59
1 DECLARE @d1 date, @t1 time, @dt1 datetime; 2 SET @d1 = GETDATE(); 3 SET @t1 = GETDATE(); 4 SET @dt1 = GETDATE(); 5 select @d1 date格式,@t1 time格式,@dt1 datetim格式