I'm using sqlite3 for accessing database. I want to know the number of rows, the number of columns, and the name of the column from the queried result and database.
For example if I run SELECT * from table
, and I get
id name number
--------------------
1 John 10
2 Jay 20
How can I know that the database has 2 rows, and 3 columns, and the number of columns are id/name/number?