Apologies, I should been a bit clearer. I'm having trouble with getting any SELECT statement to work, regardless of whether they contain tasker variables or not.
The exact query in the Action: SQL Query is
SELECT stock.stock_code, stock.stock_description FROM stock WHERE stock.stock_description LIKE '%%arg%';
the variable %arg is text input from a scene, for example 'new'.
Even if I change the WHERE statement to something like stock.stock_code = 1; it still gives no output when there should be something.
The SELECT statement works both works in Action: Run Shell, with the command:
export LD_LIBRARY_PATH=/vendor/lib*:/system/lib*
sqlite3 %dbFileLocation "SELECT stock.stock_code, stock.stock_description FROM stock WHERE stock.stock_description LIKE '%%arg%';"
The SELECT statement also works with the Tasker SQLite Plugin.
The only statement I've been able to get to work correctly in the Action: SQL Query is:
INSERT INTO stocktake_date (stocktaking_date) VALUES ('%openDate');
I'm only a beginner with sql, but the fact that it works on both Run Shell and Tasker SQLite Plugin has really thrown me. Trying to export the profile with App Factory to an unrooted phone, so Run Shell option is out and would prefer not have to install the plugin..