Want to return 0 in the integer list IF SUM(something) is null

前端 未结 0 1088
闹比i
闹比i 2021-01-15 13:22

So, I am using Room in Java in Android.

I am returing the list of payment from the database like this

SELECT IFNULL(SUM(payment), 0) FROM works_db_tabl         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题