Get column count using Sqlite -


this question has answer here:

how can column count in table using sqlite. tried select count(*) information_schema.columnsc table_name = 'test' , table_schema = "test" works fine sql doesnt works sqlite. there other way getting column count. thank you..!

try pragma table_info(table_name); give columns information-name,type etc. refer http://www.sqlite.org/pragma.html


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -