1.使用oracle内置的greatest()和least()函数,具体示例如下:

select 5 as col1,6 as col2,9 as col3,1 as col4 from dual;

--------------------------------------

col1 | col2 |col3 |col4

5       6      9      1

select greatest(5,6,9,1) as maxcol, least(5,6,9,1) as mincol from dual;

--------------------------------------

maxcol |  mincol

9            1

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
相关资源
相似解决方案