我正在尝试将 ms sql server 中的日期类型转换为毫秒,这是我尝试过的。我对 ms sql server 完全陌生,希望有人帮助。
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
)