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 ...
1.4m articles
1.4m replys
5 comments
57.0k users