Skip to Content
SQL の使用を開始
book

SQL の使用を開始

by Thomas Nield
May 2025
Intermediate to advanced
134 pages
1h 43m
Japanese
O'Reilly Media, Inc.
Content preview from SQL の使用を開始

第3章 SQLite SQLite

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

SQLiteとは何か?

前章で述べたように、データを置く場所はたくさんある。 しかし、 、クライアントとサーバーのセットアップのような面倒なことをせずに、素早く簡単にデータを保存できる場所が欲しい場合がよくある。単純なファイルにデータをストアし、Word文書と同じように簡単に編集したい。これはSQLiteを使うのに最適な状況だ。

SQLiteは世界で最も広く普及しているデータベースだ。iPhone、iPad、アンドロイド端末、ウィンドウズフォン、サーモスタット、カーコンソール、人工衛星など、データを簡単にストアしたり取り出したりする必要のある多くの最新機器に搭載されている。Windows10オペレーティングシステムやエアバスA350 XWB航空機にも多用されている。シンプルさと低いオーバーヘッドが必要な場合に優れている。ビジネスデータベースのプロトタイプにも最適だ。

しかし、どんな技術にもトレードオフがある。SQLiteはアクセスを管理するサーバを持たないため、複数の人が同時にSQLiteファイルを編集できるようなマルチユーザー環境では失敗する。それでも、我々のトレーニング目的にはSQLiteは完璧だ。

SQLiteStudio

SQLiteデータベースを操作するのに使えるSQLエディタはたくさんある。 SQLiteStudioは直感的で 、データベースの探索と管理が簡単にできるので、私はSQLiteStudioを使うことを強く勧める。本書ではこのアプリケーションを使う。http://sqlitestudio.pl/?act=download からダウンロードできる。OSはWindows、Mac、Linuxのいずれかを選ぶこと。ダウンロードしたフォルダを開き、好きな場所にコピーする。インストールは必要ない。SQLiteStudio を起動するには、SQLiteStudio.exe をダブルクリックする(図 3-1)。デスクトップにショートカットを作成し、次回から簡単に起動できるようにすることもできる。

The SQLiteStudio folder
図 3-1. SQLiteStudio フォルダー

SQLiteStudioは、SQLiteやその開発者とは関係のない、独立したサードパーティのプログラムであることに注意してほしい。SQLiteはRichard Hippと才能あるプログラマチームによって作られたデータベースエンジンである。SQLiteStudioは、このエンジンを取り込んで、ユーザ・インタフェースをうまく包んでいるに過ぎない。したがって、SQLiteStudioで問題が発生した場合は、SQLiteチームではなく、SQLiteStudioチームに連絡してほしい。

データベースのインポートとナビゲート

SQLiteStudioを初めて起動すると、、内容のないダッシュボードが表示される(図3-2)。 左側のペインはデータベースナビゲータで、、右側のグレーの領域は SQL作業領域で、データベースに対してSQLを記述する。

図 3-2. SQLiteStudio ダッシュボード

データベースをSQLiteStudioに取り込んでみよう。本書で使用するSQLiteデータベースのサンプルは ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

MySQL クックブック、第 4 版

MySQL クックブック、第 4 版

Sveta Smirnova, Alkin Tezuysal
コンピュータビジョンのための実践機械学習 ―モデルアーキテクチャからMLOpsまで

コンピュータビジョンのための実践機械学習 ―モデルアーキテクチャからMLOpsまで

Valliappa Lakshmanan, Martin Görner, Ryan Gillard, 大山 匠, 松田 晃一

Publisher Resources

ISBN: 9798341651029