select decode( x , 1 , ‘x is 1’, 2 , ‘x is 2’, ‘others’) from dual

当x等于1时,则返回‘x is 1’。

当x等于2时,则返回‘x is 2’。

否则,返回‘others’。

相关文章:

  • 2021-07-11
  • 2022-02-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-06-22
  • 2021-11-28
  • 2022-01-07
相关资源
相似解决方案