How can I count the number of columns in a table in a sqlite database in Android?
You can use pragma table_info(foo_table) and count the number of rows returned
pragma table_info(foo_table)
2.1m questions
2.1m answers
60 comments
57.0k users