Quantcast
Channel: Toad for IBM DB2 Forum - Recent Threads
Viewing all articles
Browse latest Browse all 389

RE: Build a Where Clause in a Stored Procedure and then Use it in a Select Statement (Possible?)

$
0
0

I am confused and was wondering if you could show me an example of what you ended up doing.  How is building the query as a string and dynamically building the string the same thing?

I have written my where clause as something like this.

Where (@Parm1 is null or @Parm1 = col_1)

and (@Parm2 is null or @Parm2  = col_2)


Viewing all articles
Browse latest Browse all 389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>