The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sequence number generation on a key column sbasetty Shell Programming and Scripting 6 03-27-2008 12:09 PM
Random number generation in ksh mervin2006 UNIX for Dummies Questions & Answers 2 04-27-2007 03:02 AM
A SQL Loader Script LiquidChild Shell Programming and Scripting 2 04-23-2007 07:17 AM
Random number generation tej.buch High Level Programming 1 02-13-2006 10:07 AM
SQL loader error sveera Shell Programming and Scripting 4 04-19-2005 05:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-31-2006
vinoth_kumar vinoth_kumar is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 1
SQL Loader Auto Number Generation

Hi all,

I have a doubt in SQL Loader.

We have SEQUENCE function in SQL Loader or can create Sequence in Oracle database for generating a number sequence for

a column while loading data using SQL Loader into table or multiple tables.

My requirment is this.

For the first run in SQL Loader, say some 100 records are loaded it has to generate 1 ........ 100 for a column.
For the next run, say some 65 records are loaded it has to generate 1 ...... 65 for the same column. (not as 101 .... 165).

Help me on this.

Thanks & Regards,

Vinoth
  #2 (permalink)  
Old 07-31-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
This kind of sounds a little like classroom work.
  #3 (permalink)  
Old 08-01-2006
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
you can use oracle sequence from 1-100 and then 1-65 at creation of the sequence.keep MAXVALUE 100 and CYCLE 100.after reaching of value at 100 the next value will be one.read more about sequence.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0