Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Incremental field in stored procedures
Old 03-10-2010, 03:21 AM Incremental field in stored procedures
Junior Talker

Posts: 2
Trades: 0
I have a incremental field in a procedure, which needs to be incremented for each time when we execute the procedure.

for example: if you run the procedure for the first time

SRNO
1
2
3
4

if you run the procedure for the second time

SRNO
5
6
7
8

we need to implement this with in the same procedure with out sequence

Thanks in advance
sudhasrig is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-10-2010, 03:40 AM Re: Incremental field in stored procedures
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I'm getting bit tired of asking this, but what is your db?
Oracle, sql server, firebird, db2, sqlite, postgresql, mysql.... ?

Second, what do you mean with
Quote:
we need to implement this with in the same procedure with out sequence
?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-10-2010, 03:50 AM Re: Incremental field in stored procedures
Junior Talker

Posts: 2
Trades: 0
my data base is oracle.

i want procedure for the above requirement
sudhasrig is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Incremental field in stored procedures
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.07649 seconds with 12 queries