I use sqlite3 console to debug my app while it is executing in Android. Is there a way to show also column names (not only data) with data in result of sql query?
3 Answers
Yes, after logged into sql prompt mode, execute the following each at a time:
.header on
.mode column
2 Comments
.headers on
.mode table
SELECT * FROM patients;
+--------------+-----------------+
| patient_name | patient_profile |
+--------------+-----------------+
| Name1 | 11 |
| Name2 | 11 |
| Name3 | 11 |
+--------------+-----------------+
1 Comment
Community
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.