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 

Writting Dynamic where clause in dynamic sql

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


Joined: 14 Jun 2004
Posts: 2
Topics: 2

PostPosted: Mon Jun 14, 2004 11:11 am    Post subject: Writting Dynamic where clause in dynamic sql Reply with quote

Hi,
We have a requirement, where a fixed list of fileds should be selected through Sql and get the output in different ORDER BY clause every time.(Dynamically building the ORDER BY clause based on some user input through an array).
How to write dynamic sql to have a variable ORDER BY clause driven through an array? Any suggestions are welcome on to achieve this?

Thanks
_________________
Raj
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: Mon Jun 14, 2004 12:00 pm    Post subject: Reply with quote

Swaasum,

Please search before posting. Check this links

http://www.mvsforums.com/helpboards/viewtopic.php?t=2002

Coding dynamic SQL in application programs

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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