File size: 583 Bytes
8234d9f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
---
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
```
|