关于oracle的序列调用问题
在调用序列的CURRVAL 和NEXTVAL方法时,在一下SQL结构禁止使用
- A subquery in a
DELETE,SELECT, orUPDATEstatement - A query of a view or of a materialized view
- A
SELECTstatement with theDISTINCToperator - A
SELECTstatement with aGROUPBYclause orORDERBYclause - A
SELECTstatement that is combined with anotherSELECTstatement with theUNION,INTERSECT, orMINUSset operator - The
WHEREclause of aSELECTstatement - The
DEFAULTvalue of a column in aCREATETABLEorALTERTABLEstatement - The condition of a
CHECKconstraint