标签:
问题场景一:
name FROM (select SEQ_B_LOG_ID.NEXTVAL id , ‘elong_deo‘ name from dual);
问题场景二:
into b_authority
Restrictions on Sequence Values You cannot use CURRVAL and NEXTVAL in the
■ The condition of a CHECK constrain
所谓的避免指的是不走入oracle序列的禁区,也就是尽量不要符合上述几个情况,通过合理更改SQL语句达到我们的目的。
name FROM (select ‘elong_deo‘ name from dual);
into b_authority
很多oracle语句在使用的时候会有限制,但是Function在大多数情况下没有限制,我们可以通过程序来获取nextval以及currval
ORA-02287:此处不允许序号(sequence number not allowed here) 的避免以及强制实现
标签:
原文地址:http://www.cnblogs.com/www6060bcn/p/4246944.html