|
|
--- |
|
|
license: apache-2.0 |
|
|
--- |
|
|
To export table data to a CSV file, use the sequence of SQLite commands below: |
|
|
Ex: exporting Table nlbse_tool_competition_data_by_issue to a CSV file. |
|
|
``` |
|
|
sqlite3 skillscope_data.db |
|
|
.headers on |
|
|
.mode csv |
|
|
.output output.csv |
|
|
SELECT * FROM nlbse_tool_competition_data_by_issue; |
|
|
.quit |
|
|
``` |
|
|
Important: CSV file will have zero bytes until you use the ```.quit``` statement ! |
|
|
|
|
|
|
|
|
Alternatively, you can simply call sqlite3 and check the available tables. |
|
|
The statement ```.table``` will list the available tables. |
|
|
|
|
|
``` |
|
|
sqlite3 |
|
|
.tables |
|
|
.open skillscope_data.db |
|
|
``` |
|
|
|