当前位置:Gxlcms > 数据库问题 > MySQL中遇到的问题以及解决方法(一)出现负值

MySQL中遇到的问题以及解决方法(一)出现负值

时间:2021-07-01 10:21:17 帮助过:4人阅读

p.PatientID ,p.SBP, p.SBP2,p.SBP-p.SBP2 FROM ppg_data AS p where p.SBP2 is not null and p.SBP is not null
技术图片

更改为

SELECT

p.PatientID ,p.SBP, p.SBP2,cast(p.SBP as signed)-cast(p.SBP2 as signed)
FROM
    ppg_data AS p 
    where p.SBP2 is not null 
    and p.SBP is not null

 

MySQL中遇到的问题以及解决方法(一)出现负值

标签:方法   pre   where   sign   cas   image   mys   style   load   

人气教程排行