How to count number of columns in a table in SQLITE?

后端 未结 4 1565
我寻月下人不归
我寻月下人不归 2021-01-13 03:59

How can I count the number of columns in a table in a sqlite database in Android?

4条回答
  •  耶瑟儿~
    2021-01-13 04:39

    You can use pragma table_info(foo_table) and count the number of rows returned

提交回复
热议问题