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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -