|
Yes, you
can prepare the statement first. This: C/EXEC SQL DECLARE
MYCUR CURSOR FOR Becomes this: C
select C
when
whatever C
eval
@select = ‘SELECT field1a . . . ‘ etc. C
when
a different condition C
eval
@select = ‘SELECT field1a. . . ‘ etc C
when
another different condition C
eval
@select = ‘SELECT field1a . . . ‘ etc C
endsl C/exec sql C+ prepare @select from :@select C/end-exec C/exec sql C+ declare @cursor cursor for @select C/end-exec Hth, Phil -----Original
Message-----
|
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.