I want to clarify my mind.
We can create rowset without any sql statement and next set filter.
- Code: Select all Expand view RUN
- oRs:=oCn:RowSet('bigdata')
oRs:SetFilter('datano = 555')
To change condition, oRs:SetFilter('datano=666') again.
or
with sql statement.
- Code: Select all Expand view RUN
- oRs:=oCn:RowSet('select * from bigdata where datano = ?', {555})
To change condition, oRs:ReQuery({666})
My goal is change condition just two times. Which one is suitable for me. Which one is faster?
Thanks.