0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Windows】今更ながらSQLiteに触れてみる

0
Last updated at Posted at 2026-05-22

はじめに

最近個人で簡単なシステムを組みたいけどDBで管理したい、けどDB動かすのも面倒。。。
と思っていたところ、「SQLite」なるものを見つけました。今更とは思います。
今回はこちらをインストールして触れてみようと思います。
参考:https://zenn.dev/enlog/articles/cc37c08f4b6d3f

インストール

ダウンロード

以下からSQLite CLIをダウンロードしてきます。
https://www.sqlite.org/download.html
image.png
このあたりですね。
筆者は「sqlite-tools-win-x64-3530100.zip」をダウンロード。

配置

回答したら中身を任意の場所に保存。
今回は「C:\App\SQLite」内に配置します。

環境変数設定

①スタートメニューにて「環境変数」で検索、「システム環境変数の編集」を選択
②「環境変数(N)」ボタン押下
③「システム環境変数」内「Path」をダブルクリック
④「新規(N)」ボタン押下、先ほどダウンロードしたものを配置したパスを入力、「OK」ボタン押下

動作確認

コマンドプロンプトにて以下を実行

sqlite3 --version

バージョン番号が表示されれば成功みたいです。

テーブル作成、テスト

以下コマンドを実行します。

sqlite3 test.db
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);
INSERT INTO users (name) VALUES ('taro'), ('jiro');
SELECT * FROM users;

結果
image.png

導入成功です。

最後に

SQLiteの導入に成功です。
これを使って個人制作頑張ります。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?