0
我想將ms sql服務器中的日期類型轉換爲毫秒,這裏是我試過的。我完全是新的MS SQL服務器,並會欣賞有人幫助。如何將日期更改爲毫秒毫秒SQL服務器
SELECT datediff(ms,date(),a.ReportDate), a.Peak
from [RealTimeUsage] a
where exists(
select top 10 * from
CustomerPortal.dbo.users b, CustomerPortal.dbo.UsersDevice c
where (b.useridid = c.useridid) order by a.ReportDate
)
問題是?這與你期望/需要的結果有何不同? –
問題是,當我查詢運行此查詢時,它不顯示任何毫秒。它什麼都沒顯示 –