SELECT
    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
MySQL中遇到的问题以及解决方法(一)出现负值

更改为

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

 

相关文章:

  • 2021-09-14
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2021-07-11
  • 2021-12-18
  • 2021-05-08
  • 2021-12-17
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案