Quote:
|
Originally Posted by Marcus_A
I would try this:
set fieldb to blanks
select col1, col2 from table where field in (:fielda, :fieldb)
I hope that you don't use "select *" in embeded SQL and that was only an example.
|
I think this won't give the desired result as it won't select all rows when host variable :fielda = ' ', it will only select rows having field = ' ' ! By the other hand I don't think
field in (:fielda, :fieldb) is better than
field = :fielda or field = fieldb
Don't worry we do not use "select *", it was only an example.