oracle怎么实现if else的功能

2025-03-23 14:11:28
推荐回答(2个)
回答1:

使用CASE 语句

select Case column1 when a then (select column2 from table2 where table1.id = table2.id) else column1 end from table1

回答2:

case when~