‎2021 Apr 22 4:48 AM
we have a program with three select-options S1,S2,S3. All of them are not obligatory. Now I want to connect to an oracle DB and fetch data with these select-options as condition.
The code is like:
EXEC SQL.
select * into :WS from ODB
where o1 between s1-low and s1-high
and o2 between s2-low and s2-high
and o3 between s3-low and s3-high
ENDEXEC.
My question is if user did not input value for selection options, how to let it work? Suppose S2 is empty, I tried to assign s2-low and s2-high value of '%' but it didn't work. Thx.
‎2021 Apr 22 8:17 AM
‎2021 Apr 22 8:17 AM