在调用序列的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
本文介绍了在SQL中使用序列的CURRVAL和NEXTVAL方法时的一些限制条件,包括不能用于子查询、视图查询、带有DISTINCT操作符的SELECT语句等特定场景。
232

被折叠的 条评论
为什么被折叠?



