表中有A B C三列,用SQL语句实现:当A列大于B列时选择A列否则选择B列,当B列大于C列时选择B列否则选择C列。
------------------------------------------
select (case when a>b then a else b end ),
(case when b>c then b esle c end)
from table_name 

相关文章:

  • 2021-10-12
  • 2021-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-09-01
  • 2021-11-23
猜你喜欢
  • 2022-01-13
  • 2021-07-31
  • 2018-01-23
相关资源
相似解决方案