Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I know it is an old thread, but recently I needed the same and found a neat way:
select t.tbl_name,SELECT c.name col_name from sqlite_master t, FROM pragma_table_info(t.tbl_name'your_table_name') c where t.type = 'table';c;
select t.tbl_name, c.name col_name from sqlite_master t, pragma_table_info(t.tbl_name) c where t.type = 'table';
SELECT c.name FROM pragma_table_info('your_table_name') c;