I am trying to get data from columns containing a particular string in their name. I have found the answer for MySql MySQL: Select Column names containing a string but I need to do the same query for SQLite. Any suggest?
Since SQLite 3.16, you can use PRAGMAs in queries:
SELECT name FROM pragma_table_info('MyTable') WHERE name LIKE ...
2.1m questions
2.1m answers
60 comments
57.0k users