MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fetch first N rows clause

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
cxvxbx
Beginner


Joined: 26 Apr 2006
Posts: 16
Topics: 8
Location: Utopia

PostPosted: Thu Jun 14, 2007 5:59 am    Post subject: Fetch first N rows clause Reply with quote

In a static SQL, while using the "fetch first N rows" clause in a cursor, is it possible to have N as a variable rather than a hardcoded value?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 14, 2007 6:38 am    Post subject: Reply with quote

cxvxbx,


No you CanNOT have a variable in the FETCH FIRST

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cxvxbx
Beginner


Joined: 26 Apr 2006
Posts: 16
Topics: 8
Location: Utopia

PostPosted: Thu Jun 14, 2007 7:52 am    Post subject: Reply with quote

Thanks Kolusu.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group