How to set a negative result to zero without typing the formula twice

前端 未结 0 460
梦如初夏
梦如初夏 2020-12-11 16:05

I know how to set a negative value to zero:

select case when x < 0 then 0 else x end as result from tab

But what if "x" is a ver

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