[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: dynamic where clauses
- Subject: Re: dynamic where clauses
- From: David Smith/Sacramento/IBM <davesmit@US.IBM.COM>
- Date: Tue, 24 Oct 2000 09:30:13 -0700
- Importance: Normal
Just to add my .02
I use the following style when I know my dynamic where will include ANDs
if $where_flag = 'Y'
$dyna_where = ' Your conditions here'
else
$dyna_where = '1=1'
end-if
later...
begin-select
>From DB
Where [$dyna_where]
AND ! 'other where conditions'
end-select
David L Smith
IBM Global Services