I tried to get the result of an SQLite PRAGMA statement in a query but I must be doing something wrong as the resulting query stays empty.
I tried the following:
qryColumns.Active := false;
qryColumns.SQL.Text := 'SELECT name FROM PRAGMA_TABLE_INFO("Temp_Export")';
qryColumns.Active := true;
In a SQLite manager (SQLIteExpert) the PRAGMA statement works perfectly, so the syntax is fine.
I would also like to know how to get the result of the PRAGMA statement into an array (as alternative for a query).
Can anyone get me on the right path?