Rules for using NEXTVAL and CURRVAL You can use NEXTVAL and CURRVAL in the following contexts:The SELECT list of a SELECT statement that is not part of a subqueryThe SELECT list of a subquery in an INSERT statementThe VALUES clause of an INSERT statementThe SET clause of an UPDATE statement You cannot use NEXTVAL and CURRVAL in the following context: The SELECT list of a viewA SELECT statement w..