Wish SQLite: ExecuteQuery2 and Cursor.GetColumnName

Mahares

Expert
Licensed User
Longtime User
@LucaMs
You cannot parametize field names in the SQL statement like you have here as far as I know:
Query = "SELECT ?, ? FROM tbl"
 

LucaMs

Expert
Licensed User
Longtime User
@LucaMs
You cannot parametize field names in the SQL statement like you have here as far as I know:
Query = "SELECT ?, ? FROM tbl"

Why not? Each "?" will be correctly replaced, it works.

Moreover, in some cases I may not know a priori the name of the fields to be selected.

I don't know if ExecuteQuery2 is a B4A or Java command. If it is B4A, Erel can modify it.
 

Mahares

Expert
Licensed User
Longtime User
Cookies are required to use this site. You must accept them to continue using the site. Learn more…