Oracle9i SQL Reference
Release 1 (9.0.1)

Part Number A90125-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

SQL Statements:
ALTER CLUSTER to ALTER SEQUENCE, 18 of 18


ALTER SEQUENCE

Purpose

Use the ALTER SEQUENCE statement to change the increment, minimum and maximum values, cached numbers, and behavior of an existing sequence. This statement affects only future sequence numbers.

See Also:

CREATE SEQUENCE for additional information on sequences 

Prerequisites

The sequence must be in your own schema, or you must have the ALTER object privilege on the sequence, or you must have the ALTER ANY SEQUENCE system privilege.

Syntax

alter_sequence::=


Text description of statements_125.gif follows
Text description of alter_sequence

Keywords and Parameters

The keywords and parameters in this statement serve the same purposes they serve when you create a sequence.

Examples

Modifying a Sequence Examples

This statement sets a new maximum value for the eseq sequence:

ALTER SEQUENCE employees_seq 
   MAXVALUE 1500;

This statement turns on CYCLE and CACHE for the employees_seq sequence:

ALTER SEQUENCE employees_seq 
   CYCLE
   CACHE 5; 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback