GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Oracle
Next Question 
 Oracle  |  Question 1 of 244    Print  
what is a sequence?

  
Total Answers and Comments: 9 Last Update: September 27, 2007     Asked by: Geetha 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: ammasmohan
 
Sequence are nothing but which • Automatically generates unique numbers• Is a sharable object• Is typically used to create a primary key value• Replaces application code• Speeds up the efficiency of accessing sequencevalues when cached in memory

Above answer was rated as good by the following members:
mittu.jangid
October 04, 2005 01:31:17   #1  
ammasmohan Member Since: October 2005   Contribution: 8    

RE: what is a sequence?
Sequence are nothing but which • Automatically generates unique numbers• Is a sharable object• Is typically used to create a primary key value• Replaces application code• Speeds up the efficiency of accessing sequencevalues when cached in memory
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 04, 2005 01:51:09   #2  
ammasmohan Member Since: October 2005   Contribution: 8    

RE: what is a sequence?
A sequence is a user created database object that can be shared by multiple users to generate unique integers. A typical usage for sequences is to create a primary key value which must be unique for each row. The sequence is generated and incremented (or decremented) by an internal Oracle routine. This can be a time-saving object because it can reduce the amount of application code needed to write asequence-generating routine. Sequence numbers are stored and generated independently of tables. Therefore the same sequence can be used for multiple tables.
 
Is this answer useful? Yes | No
November 09, 2005 05:26:29   #3  
vardhan_81 Member Since: November 2005   Contribution: 5    

RE: what is a sequence?

Sequence is a Database object used to generate unique sequential integer values. the syntax is

CREATE SEQUENCE <SEQUENCENAME>

START WITH <INT>

MIN VALUE/NOMINVALUE<INT>

MAXVALUE/NOMAXVALUE<INT>

INCREMENT BY

CYCLE/NOCYCLE

CACHE/NOCACHE;

EX:CREATE SEQUENCE SEQ1

INCREMENT BY 1

START WITH 1

MINVALUE 0

NOCYCLE

NOCACHE

NOORDER;


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 11, 2006 01:34:42   #4  
pankaj_gauba Member Since: November 2005   Contribution: 16    

RE: what is a sequence?

All defination of sequence is correct given by all but the sequence has it's limitation.

1.Once the number skips it cannot be recovered.

2.u can use the same sequence with any table.

e.g select seq1.nextval from emp; select seq1.nextval from dept.

so the number once skiped cannot be recovered.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 19, 2006 06:22:59   #5  
dilip bhattad        

RE: what is a sequence?

Sequence is an oracle object that can generate numeric value in sequence.


 
Is this answer useful? Yes | No
December 09, 2006 14:00:01   #6  
Pawan Ahuja        

RE: what is a sequence?

A sequence is database object basically used for generating primary key number and many user can share the sequence.

Regards

Pawan Ahuja


 
Is this answer useful? Yes | No
July 02, 2007 07:34:53   #7  
knarender Member Since: June 2007   Contribution: 11    

RE: what is a sequence?
Sequence is a database object which is used to generate unique numbers.
sequence generates Primary key values.

 
Is this answer useful? Yes | No
July 31, 2007 03:55:04   #8  
eswar        

RE: what is a sequence?
Sequence is nothing but a database object which creates an integer value automatically with out duplicates.
 
Is this answer useful? Yes | No
September 27, 2007 05:48:28   #9  
Mohammed Abdul Afroze        

RE: what is a sequence?
A sequence generates a list of unique numbers that identifiy the rows and columns of a table.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape