Wish SQLite: ExecuteQuery2 and Cursor.GetColumnName

LucaMs

Expert
Licensed User
Longtime User
If you use ExecuteQuery2, field names returned by Cursor1.GetColumnName will be all "?" (as in the query).

I would prefer to receive the real names of the fields, of course.


Thank you
 
Last edited:

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
Top