プログラミング

シンプルに使い方を紹介

【SQLite】【Rails】基本操作方法

SQLiteへの接続方法

$ sqlite3 db/development.sqlite3

テーブルの確認方法

sqlite> .table
sqlite> select * from [table]

テーブルカラムの確認方法

sqlite> .schema
sqlite> .schema tbl_name