LoginSignup
39
28

More than 5 years have passed since last update.

SQLiteとMySQLのテーブル操作方法を比較してみた

Last updated at Posted at 2014-12-14

SQLiteとMySQLの比較表

SQLiteを使ってみたら、MySQLと使い方の違いがわからなかったので比較します。

SQlite MySQL
ログイン sqlite3 データベース名 mysql -u user_name -p
データーベースを作成 sqlite3 データベース名 CREATE DATABASE database_name;
データーベースへ接続 - USE database_name;
接続中データベースを表示 .databases SELECT database();
テーブル一覧を表示 .ta
.tables
SHOW TABLES;
スキーマを表示 .schema table_name DESC table_name;
ログアウト .quit
.exit
exit;

Sqliteではユーザーは無いのですかね(^^ゞ

39
28
2

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
39
28