Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

import/export

Show Database

sqlite>.databases

Schema

.schema COMPANY

Show Tables

sqlite> .open somedb.db
sqlite> .tables
sqlite> .schema

Dump Db

$sqlite3 testDB.db .dump > testDB.sql
$sqlite3 testDB.db < testDB.sql

Import DB

sqlite> .mode csv
sqlite>.import c:/sqlite/city.csv cities