there are a lot of rows in the sql database table. If the wirtual table definition is
Code:
"select * from db.table"
, the execution of
Code:
sqleval("select * from virtualtable where field1 like 'a*' ")
function can take a long time.
Code:
Requery("field1 like 'a*' ")
seems to be a better solution. (Here 'a*'-> 'a%' conversion is done automatically by Lianja)
However, if the where condition is more complex: eg
Code:
sqleval("select * from virtualtable where field1 like 'a*' .and. .not. (Empty(field2))")
, then the parameter for requery must look something like
Code:
"field1 like 'a%' and not (field2 = '') "
, but this "translation "does not happen automatically
Bookmarks