1.典型的SQL语句如下
select decode(a,1,’yyy’,2,’xxx’) from t;
转换过程化后的语句是
IF a=1 THEN
‘yyy’
ELSIF a=2 THEN
‘xxx’
end if;
DECODE可以用CASE语[......]
Read more
近期评论