1
我需要幫助將類的開始時間和結束時間舍入到15:00:00而不是15:00:00.0000000。舍入時間日期值
下面是我的查詢結果的截圖:
下面是我的SELECT查詢:
SELECT DISTINCT Module.ModuleCode,ClassType.ClassTypeName,Convert(time,Class.StartTime) AS StartTime , Convert(time,Class.EndTime)AS EndTime, Building.BuildingName,RoomCode.RoomCode
FROM Class INNER JOIN Module ON Class.ModuleId = Module.ModuleId
INNER JOIN RoomCode ON Class.RoomCodeId = RoomCode.RoomcodeId
INNER JOIN Building ON RoomCode.BuildingId = Building.BuildingId
INNER JOIN Days ON Class.DayId = Days.DayID
INNER JOIN ClassType ON Class.ClassTypeId = ClassType.ClassTypeId WHERE Module.ModuleId = 6
非常感謝SqlZim工作:) –
@DavidCraven高興地幫助! – SqlZim
我想將StartDate&EndDate顯示在08/03/2017而不是08/03/2017 00:00:00。你怎麼做到這一點? –