Solved

Incremental fields in oracle

Posted on 2002-07-10
3
269 Views
Last Modified: 2010-04-04
Hello,

How can i create incremental fields in Oracle ,
Please  .. example ...

thank u
Asi
0
Comment
Question by:asi
3 Comments
 
LVL 2

Accepted Solution

by:
aubs earned 35 total points
ID: 7145864
If you mean like the autoinc field type of paradox/access
then the answer is that no such field type exists in Oracle.

You need to create a sequence and use the nextval and currval
properties of the sequence.



CREATE SEQUENCE MYSEQ;

INSERT INTO MYTABLE
(TAB_ID, CUSTOMER_NAME,...)
VALUES
(MYSEQ.NEXTVAL, 'Fred Bloggs',....)
0
 

Expert Comment

by:CleanupPing
ID: 9343078
asi:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9460822
asi,
No comment has been added lately (18 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to aubs http:#7145864

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question