sqlite3 memo
よく使うコマンド for sqlite3.
1. BASIC
> sqlite3 DATABESE.db
CREATE TABLE table1(col1 STRING, col2 INTEGER) -- create table
SELECT * from table1; -- get contents
SELECT col1 FROM table1 WHERE col2 = 3; -- with conditions
PRAGMA table_info('table1'); -- table info.
.tables -- show all tables
DROP TABLE 'table1'; -- delete table
.exit -- stop sqlite3 command-line