I'm using C++ with QT 5.7.0 for processing some legacy DB (SQLite3).
The DB has many tables with names 00.00.00/00:00_data_N
. I can properly get data from this tables with sql query like this:
SELECT * from '00.00.00/00:00_data_N' ORDER BY id
And I can't get column names for this table with, for example, folowing code:
auto r = _dataBase->record("00.00.00/00:00_data_N");
qDebug() << "Count: " << r.count();
I try to enclose the table name into double quotes ("..."
), into single quotes ('...'
), into square brackets ([...]
), and I try to escape dots with backslashes. I also try to combine all described methods and no of them works.
How can I get the list of field names for a table with so difficult name?