1 | initial version |
Yes, the closest match in Java/Android to the SQLite fetch assoc method in PHP is the Cursor interface. The Cursor interface provides a method called getColumnName(int columnIndex) which allows you to retrieve the name of a column in a table based on its index. The Cursor interface also provides other methods that allow you to retrieve data from a database table, such as getString(int columnIndex) and getInt(int columnIndex).