Oracle case when decode and sequence

前端之家收集整理的这篇文章主要介绍了Oracle case when decode and sequence前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
select grade,decode(grade,1,'a',2,'b','c') from salgrade;
select grade,case when grade=1 then 'a' when grade=2 then 'b' else 'c' end from salgrade;
create sequence empno_seq
maxvalue 99999
start with 15
increment by 1
;

select empno_seq.nextval from dual;
原文链接:https://www.f2er.com/oracle/208063.html

猜你在找的Oracle相关文章