LoginSignup
11
13

More than 5 years have passed since last update.

rails dbconsoleで使えるコマンド

Last updated at Posted at 2015-07-27

この記事はRailsGuidesの補完メモです。

1.5 rails dbconsole

rails dbconsoleで使えるコマンド

SQLite3

-テーブルの一覧を確認する
 sqlite> .table
-テーブルの構成を確認する
 sqlite> .schema <foobar>
-テーブルの内容を確認する
 sqlite> SELECT * FROM <foobar>;
-SQLクライアントを終了する
 sqlite> .quit

PostgreSQL

準備中

11
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
13