select cast(( (select COUNT(*)from 表名
where OperTime between '2020-01-18 08:00:00.000' and '2020-01-19 08:00:00.000' and TotalLevel=1)/
(select COUNT(TotalLevel)from 表名 where OperTime between '2020-01-18 08:00:00.000' and '2020-01-19 08:00:00.000' ))
*100 as nvarchar(50))+cast('%'as nvarchar(2) )
為啥結果是0啊,求助大佬們
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/31648.html
標籤:MySQL

