<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>devkuma – SQLite</title>
    <link>https://www.devkuma.com/en/tags/sqlite/</link>
    <image>
      <url>https://www.devkuma.com/en/tags/sqlite/logo/180x180.jpg</url>
      <title>SQLite</title>
      <link>https://www.devkuma.com/en/tags/sqlite/</link>
    </image>
    <description>Recent content in SQLite on devkuma</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>kc@example.com (kc kim)</managingEditor>
    <webMaster>kc@example.com (kc kim)</webMaster>
    <copyright>The devkuma</copyright>
    
	  <atom:link href="https://www.devkuma.com/en/tags/sqlite/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>SQLite | Installing SQLite</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite-install/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite-install/</guid>
      <description>
        
        
        &lt;p&gt;SQLite manages each database as a single file without using a database server. Because it does not use a database server, there is no separate application that must run continuously as a server. To use SQLite from the command line, you use a separate command-line interface program. To use it from PHP, Ruby on Rails, and similar environments, you need a DLL. This section explains how to download and install the SQLite command-line program and DLL.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Installing SQLite | Downloading and Installing the SQLite Command-Line Tool</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite-%EC%BB%A4%EB%A7%A8%EB%93%9C-%EB%9D%BC%EC%9D%B8-%EB%8F%84%EA%B5%AC-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EB%B0%8F-%EC%84%A4%EC%B9%98/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite-%EC%BB%A4%EB%A7%A8%EB%93%9C-%EB%9D%BC%EC%9D%B8-%EB%8F%84%EA%B5%AC-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EB%B0%8F-%EC%84%A4%EC%B9%98/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to download and install the SQLite command-line program so that you can use SQLite from the command line. As of October 2019, the latest version was SQLite 3.30.1 (2019-10-11).&lt;/p&gt;
&lt;h2 id=&#34;download-sqlite&#34;&gt;Download SQLite&lt;/h2&gt;
&lt;p&gt;Open the official SQLite website in a browser.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.sqlite.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.sqlite.org/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_org.png&#34; alt=&#34;sqlite.org&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;Download&amp;rdquo; menu at the top of the page.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_download.png&#34; alt=&#34;Sqlite download&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click the tool binary for your operating system, such as a file named in the &lt;code&gt;sqlite-tools-xxx&lt;/code&gt; format, download it, and save it wherever you prefer.&lt;/p&gt;
&lt;h2 id=&#34;install-the-sqlite-command-line-program&#34;&gt;Install the SQLite Command-Line Program&lt;/h2&gt;
&lt;p&gt;The downloaded file is a compressed archive. Installation is complete once you extract it to any directory.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ls -al
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;total &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;5016&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x@  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;5&lt;/span&gt; kimkc  staff      &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;170&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;11&lt;/span&gt; 18:32 .
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;41&lt;/span&gt; kimkc  staff     &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1394&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;14&lt;/span&gt; 23:41 ..
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt; kimkc  staff   &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;691768&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;11&lt;/span&gt; 18:31 sqldiff
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt; kimkc  staff  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1152260&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;11&lt;/span&gt; 18:32 sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@  &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt; kimkc  staff   &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;719796&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;11&lt;/span&gt; 18:31 sqlite3_analyzer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The archive contains three files: &lt;code&gt;sqlite3&lt;/code&gt;, the command-line tool; &lt;code&gt;sqldiff&lt;/code&gt;, which reports differences between two databases; and &lt;code&gt;sqlite3_analyzer&lt;/code&gt;, which displays database analysis reports.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Installing SQLite | Testing the SQLite Command-Line Tool</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite-cli/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite-cli/</guid>
      <description>
        
        
        &lt;p&gt;This page shows how to try the downloaded SQLite command-line tool and confirm that it works.&lt;/p&gt;
&lt;h2 id=&#34;create-a-database-and-table-with-the-command-line-tool&#34;&gt;Create a Database and Table with the Command-Line Tool&lt;/h2&gt;
&lt;p&gt;First, start a command prompt. Because &lt;code&gt;PATH&lt;/code&gt; has not been configured separately, move to the directory where the &lt;code&gt;sqlite3&lt;/code&gt; executable is located.&lt;/p&gt;
&lt;p&gt;Create a database. To create a database with the command-line tool, use the following format.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite3 database-name
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you specify a database name and run the &lt;code&gt;sqlite3&lt;/code&gt; program, SQLite connects to the database with that name if it already exists. If the database with that name does not exist, SQLite creates a new database and then connects to it.&lt;/p&gt;
&lt;p&gt;The database name can be anything, but a file is created with the specified database name. For example, you can use &lt;code&gt;sampledb.sqlite3&lt;/code&gt; or &lt;code&gt;sampledb.db&lt;/code&gt;. A name without an extension, such as &lt;code&gt;sampledb&lt;/code&gt;, is also fine. Here, use &lt;code&gt;sample.sqlite3&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite3 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A new database named &lt;code&gt;sample.sqlite3&lt;/code&gt; has been created and connected. However, the actual file is created only after you create an object such as a table in the database. While connected to SQLite, the &lt;code&gt;sqlite&amp;gt;&lt;/code&gt; prompt is displayed.&lt;/p&gt;
&lt;p&gt;Next, create one table in the database. Run the following statement.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;create&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;table&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;user&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;);&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table user(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The table has been created. This example created a database and then created a table in that database.&lt;/p&gt;
&lt;p&gt;To close the connection to the database, enter &lt;code&gt;.exit&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;.exit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table user(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; .exit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The connection to the database has been closed.&lt;/p&gt;
&lt;h2 id=&#34;the-file-where-the-database-is-stored&#34;&gt;The File Where the Database Is Stored&lt;/h2&gt;
&lt;p&gt;After you create a database, data is stored in the database file when you create an object such as a table. Because no location was specified separately, the database file is created in the directory where the &lt;code&gt;sqlite3&lt;/code&gt; executable is located.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ls
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sample.sqlite3   sqldiff          sqlite3          sqlite3_analyzer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can see that a new file named &lt;code&gt;sample.sqlite3&lt;/code&gt; has been created. This file stores the data for the &lt;code&gt;sample.sqlite3&lt;/code&gt; database you just created. In this way, SQLite creates and manages one file for each database, although in some cases it may use multiple files.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Installing SQLite | Downloading sqlite3.dll</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite3-dll-download/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite3-dll-download/</guid>
      <description>
        
        
        &lt;p&gt;SQLite can be used from the command line, but it is more often used from other applications such as PHP and Rails. To use SQLite from an application, you need &lt;code&gt;sqlite3.dll&lt;/code&gt;. This page explains how to download the &lt;code&gt;sqlite3.dll&lt;/code&gt; file.&lt;/p&gt;
&lt;h2 id=&#34;download-sqlite3dll&#34;&gt;Download sqlite3.dll&lt;/h2&gt;
&lt;p&gt;To download &lt;code&gt;sqlite3.dll&lt;/code&gt;, open the following URL.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.sqlite.org/download.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.sqlite.org/download.html&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open the official SQLite page in a browser.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_download_dll.png&#34; alt=&#34;Sqlite download&#34;&gt;&lt;/p&gt;
&lt;p&gt;In a 64-bit Windows environment, click the link named &lt;strong&gt;sqlite-dll-win64-x64-3300100.zip&lt;/strong&gt; in the &amp;ldquo;Precompiled Binaries for Windows&amp;rdquo; block, download it, and save it wherever you prefer.&lt;/p&gt;
&lt;h2 id=&#34;copy-sqlite3dll-to-a-folder-configured-in-path&#34;&gt;Copy sqlite3.dll to a Folder Configured in PATH&lt;/h2&gt;
&lt;p&gt;When you extract the downloaded &lt;strong&gt;sqlite-dll-win64-x64-3300100.zip&lt;/strong&gt; archive, it contains two files: &lt;code&gt;sqlite3.dll&lt;/code&gt; and &lt;code&gt;sqlite3.def&lt;/code&gt;. Save the &lt;code&gt;sqlite3.dll&lt;/code&gt; file to a folder configured in &lt;code&gt;PATH&lt;/code&gt;. For example, you can place it in &lt;code&gt;C:\Windows\System32&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite3.def sqlite3.dll
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In fact, when you install PHP, the DLL required to use SQLite is also installed with it. Therefore, downloading it separately is not always required.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Installing SQLite | Referencing the SQLite Documentation</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite-docs/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite-docs/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to reference the SQLite documentation. You can read it online or download it for local use.&lt;/p&gt;
&lt;h2 id=&#34;referencing-the-online-documentation&#34;&gt;Referencing the Online Documentation&lt;/h2&gt;
&lt;p&gt;To reference the online documentation, click &amp;ldquo;Documentation&amp;rdquo; in the menu at the top of the official SQLite page, or open the following link.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.sqlite.org/docs.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.sqlite.org/docs.html&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_1.png&#34; alt=&#34;sqlite documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;For example, expand &amp;ldquo;Programming Interfaces&amp;rdquo; and click the &amp;ldquo;SQL Syntax&amp;rdquo; menu.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_2.png&#34; alt=&#34;sqlite documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;You can view explanations of the SQL features available in SQLite.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_3.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;You can also reference many other documents about SQLite.&lt;/p&gt;
&lt;h2 id=&#34;downloading-the-documentation&#34;&gt;Downloading the Documentation&lt;/h2&gt;
&lt;p&gt;If you want to download the documentation locally, click the &amp;ldquo;Download&amp;rdquo; menu at the top of the page, or open the following link.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.sqlite.org/download.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.sqlite.org/download.html&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_4.png&#34; alt=&#34;sqlite documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;sqlite-doc-3300100.zip&amp;rdquo; link in the &amp;ldquo;Documentation&amp;rdquo; block to download the documentation.&lt;/p&gt;
&lt;p&gt;After the download is complete, extract the compressed file. Many HTML files will appear, as shown below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_5.png&#34; alt=&#34;sqlite documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;Find and open the &lt;code&gt;index.html&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_doc_6.png&#34; alt=&#34;sqlite documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;The same screen as the official website page is displayed. Click the &amp;ldquo;Documentation&amp;rdquo; menu at the top of the screen, and you can reference the documentation offline as well.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite</title>
      <link>https://www.devkuma.com/en/docs/sqlite/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/</guid>
      <description>
        
        
        &lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/sqlite/sqlite_logo.png&#34; alt=&#34;SQLite&#34;&gt;&lt;/p&gt;
&lt;p&gt;This section explains how to use the SQLite database. SQLite usually runs inside a single application rather than as a database server. It is easy to install and very compact, so it is often distributed together with applications. Here, each topic walks through how to use SQLite to create databases and tables, add data, and query data.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | SQLite Basic Knowledge</title>
      <link>https://www.devkuma.com/en/docs/sqlite/basic/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/basic/</guid>
      <description>
        
        
        &lt;p&gt;This section explains the basic knowledge you should understand when using SQLite.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | SQLite Basic Knowledge | How to Enter SQL Statements and Commands in the Command-Line Tool</title>
      <link>https://www.devkuma.com/en/docs/sqlite/cli-sql-command/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/cli-sql-command/</guid>
      <description>
        
        
        &lt;p&gt;In SQLite, you can use the command-line tool to create databases, search data, and perform other operations. This page explains how to enter commands when using the SQLite command-line tool.&lt;/p&gt;
&lt;h2 id=&#34;running-commands&#34;&gt;Running Commands&lt;/h2&gt;
&lt;p&gt;To run the SQLite command-line tool, start a command prompt, move to the directory where &lt;code&gt;sqlite3&lt;/code&gt; is installed, and run the following command. The tool starts and connects to the database specified as the argument.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite3 database-name
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This time, run the following command to connect to the &lt;code&gt;sample.sqlite3&lt;/code&gt; database created earlier. Even if the previously created file was deleted or does not exist, the connection command itself still works.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 sample.sqlite3 
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In the command-line tool, you can run SQLite commands that configure the command-line tool, as well as arbitrary SQL statements.&lt;/p&gt;
&lt;p&gt;Try running the SQLite command &lt;code&gt;.show&lt;/code&gt;. Enter the command, add any required arguments if needed, and press the Enter key to execute it.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 sample.sqlite3 
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; .show
        echo: off
         eqp: off
     explain: auto
     headers: off
        mode: list
   nullvalue: &amp;#34;&amp;#34;
      output: stdout
colseparator: &amp;#34;|&amp;#34;
rowseparator: &amp;#34;\n&amp;#34;
       stats: off
       width: 
    filename: sample.sqlite3
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;running-sql-statements&#34;&gt;Running SQL Statements&lt;/h2&gt;
&lt;p&gt;Next, run a simple SQL statement. For SQL statements, everything up to the final semicolon (&lt;code&gt;;&lt;/code&gt;) is treated as one SQL statement. After entering the semicolon, press Enter to execute it.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite&amp;gt; create table user(id, name);
sqlite&amp;gt; insert into user(id, name) values (1, &amp;#39;devkuma&amp;#39;);
sqlite&amp;gt; insert into user(id, name) values (2, &amp;#39;araikuma&amp;#39;);
sqlite&amp;gt; select * from user;
1|devkuma
2|araikuma
sqlite&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the &lt;code&gt;user&lt;/code&gt; table created earlier already exists, you do not need to run the first line.&lt;/p&gt;
&lt;h2 id=&#34;splitting-a-long-sql-statement-across-multiple-lines&#34;&gt;Splitting a Long SQL Statement Across Multiple Lines&lt;/h2&gt;
&lt;p&gt;A single SQL statement can become long. If you try to enter the entire statement at once, it can be difficult to type or hard to understand how far you have entered.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite&amp;gt; select id as user_id, name as user_name from user where id = 1 and name = &amp;#39;devkuma&amp;#39; order by name desc;
1|devkuma
sqlite&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;When a statement is long, the command-line tool also allows you to split it across multiple lines. Press Enter while entering the statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite&amp;gt; select id as user_id, name as user_name 
   ...&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;SQLite treats everything up to the final semicolon (&lt;code&gt;;&lt;/code&gt;) as one statement. If you press Enter before entering the semicolon, SQLite determines that the statement is still being entered and lets you continue.&lt;/p&gt;
&lt;p&gt;Now enter the rest of the statement. Press Enter at appropriate points as shown below.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite&amp;gt; select id as user_id, name as user_name 
   ...&amp;gt; from user
   ...&amp;gt; where id = 1 and name = &amp;#39;devkuma&amp;#39;
   ...&amp;gt; order by name desc
   ...&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You do not need to add a space before pressing Enter. When you press Enter in the middle of a command, the text before and after it is automatically treated as separate words.&lt;/p&gt;
&lt;p&gt;For SQL statements, when you enter a line that contains &lt;code&gt;;&lt;/code&gt; and press Enter, SQLite determines that the statement input is complete and executes the SQL statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite&amp;gt; select id as user_id, name as user_name 
   ...&amp;gt; from user
   ...&amp;gt; where id = 1 and name = &amp;#39;devkuma&amp;#39;
   ...&amp;gt; order by name desc
   ...&amp;gt; ;
1|devkuma
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Entering the statement on one line and splitting it across multiple lines both produce the same result, so use whichever style fits the situation.&lt;/p&gt;
&lt;p&gt;&amp;ndash;&lt;/p&gt;
&lt;p&gt;This page explained how to enter commands and SQL statements in the SQLite command-line tool.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | SQLite Basic Knowledge | Notes on Keywords Defined in SQLite</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sqlite-keywords/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sqlite-keywords/</guid>
      <description>
        
        
        &lt;p&gt;SQLite defines many keywords. These keywords cannot normally be used as table names, column names, and similar identifiers, but you can use them if you write them in an appropriate form. This page explains points to note about keywords defined in SQLite and lists those keywords.&lt;/p&gt;
&lt;h2 id=&#34;how-to-use-keywords-as-identifiers&#34;&gt;How to Use Keywords as Identifiers&lt;/h2&gt;
&lt;p&gt;SQLite defines many keywords. The list is shown later, but words such as &lt;code&gt;TABLE&lt;/code&gt; and &lt;code&gt;SELECT&lt;/code&gt; are keywords. Keywords are also called reserved words.&lt;/p&gt;
&lt;p&gt;Table names and database names are called identifiers. Identifiers can be specified by combining letters, numbers, and similar characters. For example, names such as &lt;code&gt;booktable&lt;/code&gt; and &lt;code&gt;name&lt;/code&gt; are valid. However, SQLite keywords cannot be used directly as identifiers. For example, an error occurs if you try to use &lt;code&gt;select&lt;/code&gt; as a table name.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;create&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;table&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;select&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;);&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table select(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error: near &amp;#34;select&amp;#34;: syntax error
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It is better to avoid using keywords as table names, database names, and similar identifiers whenever possible. However, if you need to use a keyword as an identifier for some reason, use one of the following four forms.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;keyword&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;keyword&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;keyword&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;]&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;keyword&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;`&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When a keyword is enclosed in single quotes (&lt;code&gt;&#39;&lt;/code&gt;), it is treated as a string value. If a single-quoted string value is written where an identifier is expected, SQLite treats it as an identifier, so you can specify it as follows.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;create&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;table&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;select&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;);&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table &amp;#39;select&amp;#39;(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When a keyword is enclosed in double quotes (&lt;code&gt;&amp;quot;&lt;/code&gt;), square brackets (&lt;code&gt;[]&lt;/code&gt;), or backticks (&lt;code&gt;`&lt;/code&gt;), it is treated as an identifier. Also, if you write an identifier enclosed in double quotes where a string should be written, it is treated as a string.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;create&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;table&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;select&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;);&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table &amp;#34;select&amp;#34;(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error: table &amp;#34;select&amp;#34; already exists
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; drop table &amp;#39;select&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; create table &amp;#34;select&amp;#34;(id, name);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Square brackets are the style used by Access and SQL Server, while backticks are the style used by MySQL. These two styles are provided for compatibility with those databases, so in general, use single quotes or double quotes.&lt;/p&gt;
&lt;h2 id=&#34;keyword-list&#34;&gt;Keyword List&lt;/h2&gt;
&lt;p&gt;The following are the keywords defined by SQLite. This list is published on the official site below.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.sqlite.org/lang_keywords.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;SQLite Keywords&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;ABORT&lt;/th&gt;
          &lt;th&gt;ACTION&lt;/th&gt;
          &lt;th&gt;ADD&lt;/th&gt;
          &lt;th&gt;AFTER&lt;/th&gt;
          &lt;th&gt;ALL&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;ALTER&lt;/td&gt;
          &lt;td&gt;ANALYZE&lt;/td&gt;
          &lt;td&gt;AND&lt;/td&gt;
          &lt;td&gt;AS&lt;/td&gt;
          &lt;td&gt;ASC&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;ATTACH&lt;/td&gt;
          &lt;td&gt;AUTOINCREMENT&lt;/td&gt;
          &lt;td&gt;BEFORE&lt;/td&gt;
          &lt;td&gt;BEGIN&lt;/td&gt;
          &lt;td&gt;BETWEEN&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;BY&lt;/td&gt;
          &lt;td&gt;CASCADE&lt;/td&gt;
          &lt;td&gt;CASE&lt;/td&gt;
          &lt;td&gt;CAST&lt;/td&gt;
          &lt;td&gt;CHECK&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;COLLATE&lt;/td&gt;
          &lt;td&gt;COLUMN&lt;/td&gt;
          &lt;td&gt;COMMIT&lt;/td&gt;
          &lt;td&gt;CONFLICT&lt;/td&gt;
          &lt;td&gt;CONSTRAINT&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;CREATE&lt;/td&gt;
          &lt;td&gt;CROSS&lt;/td&gt;
          &lt;td&gt;CURRENT&lt;/td&gt;
          &lt;td&gt;CURRENT_DATE&lt;/td&gt;
          &lt;td&gt;CURRENT_TIME&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;CURRENT_TIMESTAMP&lt;/td&gt;
          &lt;td&gt;DATABASE&lt;/td&gt;
          &lt;td&gt;DEFAULT&lt;/td&gt;
          &lt;td&gt;DEFERRABLE&lt;/td&gt;
          &lt;td&gt;DEFERRED&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;DELETE&lt;/td&gt;
          &lt;td&gt;DESC&lt;/td&gt;
          &lt;td&gt;DETACH&lt;/td&gt;
          &lt;td&gt;DISTINCT&lt;/td&gt;
          &lt;td&gt;DO&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;DROP&lt;/td&gt;
          &lt;td&gt;EACH&lt;/td&gt;
          &lt;td&gt;ELSE&lt;/td&gt;
          &lt;td&gt;END&lt;/td&gt;
          &lt;td&gt;ESCAPE&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;EXCEPT&lt;/td&gt;
          &lt;td&gt;EXCLUSIVE&lt;/td&gt;
          &lt;td&gt;EXISTS&lt;/td&gt;
          &lt;td&gt;EXPLAIN&lt;/td&gt;
          &lt;td&gt;FAIL&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;FILTER&lt;/td&gt;
          &lt;td&gt;FOLLOWING&lt;/td&gt;
          &lt;td&gt;FOR&lt;/td&gt;
          &lt;td&gt;FOREIGN&lt;/td&gt;
          &lt;td&gt;FROM&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;FULL&lt;/td&gt;
          &lt;td&gt;GLOB&lt;/td&gt;
          &lt;td&gt;GROUP&lt;/td&gt;
          &lt;td&gt;HAVING&lt;/td&gt;
          &lt;td&gt;IF&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;IGNORE&lt;/td&gt;
          &lt;td&gt;IMMEDIATE&lt;/td&gt;
          &lt;td&gt;IN&lt;/td&gt;
          &lt;td&gt;INDEX&lt;/td&gt;
          &lt;td&gt;INDEXED&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;INITIALLY&lt;/td&gt;
          &lt;td&gt;INNER&lt;/td&gt;
          &lt;td&gt;INSERT&lt;/td&gt;
          &lt;td&gt;INSTEAD&lt;/td&gt;
          &lt;td&gt;INTERSECT&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;INTO&lt;/td&gt;
          &lt;td&gt;IS&lt;/td&gt;
          &lt;td&gt;ISNULL&lt;/td&gt;
          &lt;td&gt;JOIN&lt;/td&gt;
          &lt;td&gt;KEY&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;LEFT&lt;/td&gt;
          &lt;td&gt;LIKE&lt;/td&gt;
          &lt;td&gt;LIMIT&lt;/td&gt;
          &lt;td&gt;MATCH&lt;/td&gt;
          &lt;td&gt;NATURAL&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;NO&lt;/td&gt;
          &lt;td&gt;NOT&lt;/td&gt;
          &lt;td&gt;NOTHING&lt;/td&gt;
          &lt;td&gt;NOTNULL&lt;/td&gt;
          &lt;td&gt;NULL&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;OF&lt;/td&gt;
          &lt;td&gt;OFFSET&lt;/td&gt;
          &lt;td&gt;ON&lt;/td&gt;
          &lt;td&gt;OR&lt;/td&gt;
          &lt;td&gt;ORDER&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;OUTER&lt;/td&gt;
          &lt;td&gt;OVER&lt;/td&gt;
          &lt;td&gt;PARTITION&lt;/td&gt;
          &lt;td&gt;PLAN&lt;/td&gt;
          &lt;td&gt;PRAGMA&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;PRECEDING&lt;/td&gt;
          &lt;td&gt;PRIMARY&lt;/td&gt;
          &lt;td&gt;QUERY&lt;/td&gt;
          &lt;td&gt;RAISE&lt;/td&gt;
          &lt;td&gt;RANGE RECURSIVE&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;REFERENCES&lt;/td&gt;
          &lt;td&gt;REGEXP&lt;/td&gt;
          &lt;td&gt;REINDEX&lt;/td&gt;
          &lt;td&gt;RELEASE&lt;/td&gt;
          &lt;td&gt;RENAME&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;REPLACE&lt;/td&gt;
          &lt;td&gt;RESTRICT&lt;/td&gt;
          &lt;td&gt;RIGHT&lt;/td&gt;
          &lt;td&gt;ROLLBACK&lt;/td&gt;
          &lt;td&gt;ROW&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;ROWS&lt;/td&gt;
          &lt;td&gt;SAVEPOINT&lt;/td&gt;
          &lt;td&gt;SELECT&lt;/td&gt;
          &lt;td&gt;SET&lt;/td&gt;
          &lt;td&gt;TABLE&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;TEMP&lt;/td&gt;
          &lt;td&gt;TEMPORARY&lt;/td&gt;
          &lt;td&gt;THEN&lt;/td&gt;
          &lt;td&gt;TO&lt;/td&gt;
          &lt;td&gt;TRANSACTION&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;TRIGGER&lt;/td&gt;
          &lt;td&gt;UNBOUNDED&lt;/td&gt;
          &lt;td&gt;UNION&lt;/td&gt;
          &lt;td&gt;UNIQUE&lt;/td&gt;
          &lt;td&gt;UPDATE&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;USING&lt;/td&gt;
          &lt;td&gt;VACUUM&lt;/td&gt;
          &lt;td&gt;VALUES&lt;/td&gt;
          &lt;td&gt;VIEW&lt;/td&gt;
          &lt;td&gt;VIRTUAL&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;WHEN&lt;/td&gt;
          &lt;td&gt;WHERE&lt;/td&gt;
          &lt;td&gt;WINDOW&lt;/td&gt;
          &lt;td&gt;WITH&lt;/td&gt;
          &lt;td&gt;WITHOUT&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Some of these keywords can be used as identifiers even if they are not enclosed in single quotes, double quotes, or similar delimiters. However, using keywords directly as identifiers makes them harder to understand, so it is not recommended.&lt;/p&gt;
&lt;p&gt;If an unknown error occurs when creating a table or similar object, check whether the table name or column name is a keyword.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | SQLite Basic Knowledge | Writing Comments in SQL Statements</title>
      <link>https://www.devkuma.com/en/docs/sqlite/sql-comment/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/sql-comment/</guid>
      <description>
        
        
        &lt;p&gt;This page explains the formats used to write comments in SQL statements.&lt;/p&gt;
&lt;h2 id=&#34;writing-comments&#34;&gt;Writing Comments&lt;/h2&gt;
&lt;p&gt;When you want to leave notes or explanations in SQL statements, SQLite provides the following two ways to add comments to SQL statements.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;-- comment
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;/* comment */&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Comments are ignored when SQL statements are executed, so they do not affect the execution result.&lt;/p&gt;
&lt;p&gt;When you write a comment in the &lt;code&gt;-- comment&lt;/code&gt; format, the text from &lt;code&gt;--&lt;/code&gt; to the end of the line becomes a comment. For example, write it as follows.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;select&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;*&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;from&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;user&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;-- list
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; select * from user; -- list
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;1|devkuma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;2|araikuma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you write a comment in the &lt;code&gt;/* comment */&lt;/code&gt; format, the text from &lt;code&gt;/*&lt;/code&gt; to &lt;code&gt;*/&lt;/code&gt; becomes a comment.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;select&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;*&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;from&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;/* comment */&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;user&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; select * from /* comment */ user;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;1|devkuma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;2|araikuma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You may not write comments very often in the command-line tool, but comments are useful when you write multiple SQL statements in an external file and then import and execute them in SQLite.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Database</title>
      <link>https://www.devkuma.com/en/docs/sqlite/database/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/database/</guid>
      <description>
        
        
        &lt;p&gt;This section explains how to create a database with SQLite3 and how to delete a database that you have created.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Database | Creating and Connecting to a Database</title>
      <link>https://www.devkuma.com/en/docs/sqlite/create-connect-database/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/create-connect-database/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to create a new SQLite database and how to connect to a database that has already been created.&lt;/p&gt;
&lt;h2 id=&#34;creating-a-database&#34;&gt;Creating a Database&lt;/h2&gt;
&lt;p&gt;To create a new database, enter the following command at the command prompt.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite3 database-name
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example, suppose you want to create a database named &lt;code&gt;myfriend.sqlite3&lt;/code&gt;. Start a command prompt, move to the directory that contains the &lt;code&gt;sqlite3&lt;/code&gt; file, and run the following command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database does not exist, a new database named &lt;code&gt;myfriend.sqlite3&lt;/code&gt; is created and SQLite immediately connects to it.&lt;/p&gt;
&lt;p&gt;Because you are now connected to the database, you can create tables and other objects in it. If you do not create anything, the database file is not actually created, so create a simple table here. The detailed method for creating tables is explained on another page.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; create table customer (id, name);
$
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To exit the command-line tool, enter &lt;code&gt;.exit&lt;/code&gt;. This disconnects you from the connected database.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;.exit
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now check it in practice. First, connect to the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database and enter &lt;code&gt;.exit&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt;.exit
$
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Next, check the database file that &lt;code&gt;sqlite3&lt;/code&gt; created.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ls
myfriend.sqlite3 sample.sqlite3   sqldiff          sqlite3          sqlite3_analyzer
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;A file with the same name as the specified database name has been created. In SQLite, when you create a database this way, a file with the same name is created and all data contained in the database is stored in that file.&lt;/p&gt;
&lt;p&gt;If you want to create the database file somewhere other than the directory that contains &lt;code&gt;sqlite3&lt;/code&gt;, specify the path together with the database name as follows.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite3 path/database-name
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example, to create a &lt;code&gt;sample.sqlite3&lt;/code&gt; database in the absolute path &lt;code&gt;/Users/devkuma/sqlite/test&lt;/code&gt;, run the following command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 /Users/devkuma/sqlite/test/sample.sqlite3
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;about-database-names&#34;&gt;About Database Names&lt;/h2&gt;
&lt;p&gt;You can specify any name you want for a database. In the example above, &lt;code&gt;myfriend.sqlite3&lt;/code&gt; was used, but any format is acceptable.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;myfriend
myfriend.db
myfriend.sqlite
myfriend.sqlite3
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;When you create a database, SQLite creates a file with the same name as the database and stores the data there. For example, if the database name is &lt;code&gt;myfriend&lt;/code&gt;, the created file is also named &lt;code&gt;myfriend&lt;/code&gt; without an extension, which can make it hard to tell what kind of file it is later.&lt;/p&gt;
&lt;p&gt;For that reason, it is a good idea to choose the database name with the stored file name in mind. There are several extensions in common use, but this site uses the &lt;code&gt;.sqlite3&lt;/code&gt; extension consistently.&lt;/p&gt;
&lt;h2 id=&#34;connecting-to-a-database&#34;&gt;Connecting to a Database&lt;/h2&gt;
&lt;p&gt;To perform various operations on a database, you must first connect to it. When you create a new database, SQLite connects to it at the same time. To connect to an already created database, enter the following command at the command prompt.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sqlite3 database-name
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As you can see, the format is the same as when creating a new database. If you specify the name of an existing database as the argument, SQLite connects to that database instead of creating a new one.&lt;/p&gt;
&lt;p&gt;Now try connecting to the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database created earlier. Start a command prompt, move to the directory that contains &lt;code&gt;sqlite3&lt;/code&gt;, and run the following command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To confirm that a new database was not created and that you are connected to the existing database, run the &lt;code&gt;.tables&lt;/code&gt; command to check the tables created in the existing database.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;.tables
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now check it in practice. First, connect to the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database and enter &lt;code&gt;.tables&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; .tables
customer
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can confirm that the &lt;code&gt;customer&lt;/code&gt; table exists. Creating a new database and connecting to an existing database use the same command and the same format, so keep this behavior in mind.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Database | Checking Connected Databases</title>
      <link>https://www.devkuma.com/en/docs/sqlite/check-connected-databases/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/check-connected-databases/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to display information about the currently connected database in SQLite and the file where that database is stored.&lt;/p&gt;
&lt;h2 id=&#34;information-about-connected-databases&#34;&gt;Information About Connected Databases&lt;/h2&gt;
&lt;p&gt;When you are connected to a database, use the SQLite command &lt;code&gt;.databases&lt;/code&gt; to display the current database name and the file name where the database is stored.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;.databases
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now check it in practice. First, connect to the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database and enter &lt;code&gt;.databases&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; .databases
main: /Users/devkuma/sqlite/myfriend.sqlite3
sqlite&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following information is displayed on the screen.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;main&lt;/code&gt; is the database name, and &lt;code&gt;/Users/devkuma/sqlite/myfriend.sqlite3&lt;/code&gt; is the file name where the database is stored.&lt;/p&gt;
&lt;p&gt;The term database name may be confusing here. &lt;code&gt;main&lt;/code&gt; is the name used when you need to specify a database name in an SQL statement, in the same way that you specify table names and column names. A database connected with &lt;code&gt;sqlite3 database-name&lt;/code&gt; is automatically assigned the database name &lt;code&gt;main&lt;/code&gt;. In other words, the entry whose database name is &lt;code&gt;main&lt;/code&gt; is the connected database.&lt;/p&gt;
&lt;p&gt;The name &lt;code&gt;main&lt;/code&gt; may seem important now, but you can ignore it for the moment. The details are not covered here, but when attached databases exist, they are also displayed in the list when you run the &lt;code&gt;.databases&lt;/code&gt; command. The displayed database name is the name specified when the database was attached.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt; 
sqlite&amp;gt; attach database &amp;#39;myaddress.sqlite3&amp;#39; as address;
sqlite&amp;gt; 
main: /Users/devkuma/sqlite/myfriend.sqlite3
address: /Users/devkuma/sqlite/myaddress.sqlite3
sqlite&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In this way, you can use the &lt;code&gt;.databases&lt;/code&gt; command to check information about the currently connected databases.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Database | Backing Up and Deleting a Database</title>
      <link>https://www.devkuma.com/en/docs/sqlite/database-backup-delete/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/database-backup-delete/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to back up a database created with SQLite by copying the database file, and how to delete a database.&lt;/p&gt;
&lt;h2 id=&#34;backing-up-a-database&#34;&gt;Backing Up a Database&lt;/h2&gt;
&lt;p&gt;SQLite creates one file for each database, and all information is stored in that file. Therefore, to back up a specific database, you can simply copy the file used by that database.&lt;/p&gt;
&lt;p&gt;Now check it in practice. Suppose the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; database has already been created, and connect to this database.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sqlite3 myfriend.sqlite3
SQLite version 3.19.3 2017-06-27 16:48:08
Enter &amp;#34;.help&amp;#34; for usage hints.
sqlite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Run the &lt;code&gt;.tables&lt;/code&gt; command to check the tables created in the database. A table named &lt;code&gt;customer&lt;/code&gt; has been created.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 myfriend.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; .tables
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;customer
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now disconnect from the database. Then copy the &lt;code&gt;myfriend.sqlite3&lt;/code&gt; file and save it under another name, &lt;code&gt;myfriendbackup.sqlite3&lt;/code&gt;. The file name can be anything.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ cp myfriend.sqlite3 myfriendbackup.sqlite3 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This creates a database identical to the original database. Next, connect to the &lt;code&gt;myfriendbackup.sqlite3&lt;/code&gt; database created as the backup and run the &lt;code&gt;.tables&lt;/code&gt; command to display the list of tables created in the database.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 myfriendbackup.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; .tables
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;customer
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can confirm that the same table as in the original database exists. This was only a simple check, but it shows that the database has been duplicated. In SQLite, you can back up a database simply by copying the file that contains the database data.&lt;/p&gt;
&lt;p&gt;In addition to this method, SQLite also provides backup and recovery using the &lt;code&gt;.backup&lt;/code&gt; and &lt;code&gt;.restore&lt;/code&gt; commands.&lt;/p&gt;
&lt;h2 id=&#34;deleting-a-database&#34;&gt;Deleting a Database&lt;/h2&gt;
&lt;p&gt;SQLite manages each database independently as a single file. To delete a database, delete the file that stores the database. There is nothing else you need to do in SQLite.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
    <item>
      <title>SQLite | Database | Reclaiming Free Space (VACUUM)</title>
      <link>https://www.devkuma.com/en/docs/sqlite/database-vacuum/</link>
      <pubDate>Mon, 14 Oct 2019 23:19:51 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/sqlite/database-vacuum/</guid>
      <description>
        
        
        &lt;p&gt;When data is repeatedly added to and deleted from a SQLite database, the file size can become large compared with the amount of data stored. This page explains how to reclaim unused space by using the VACUUM statement.&lt;/p&gt;
&lt;h2 id=&#34;using-vacuum&#34;&gt;Using VACUUM&lt;/h2&gt;
&lt;p&gt;When you create a SQLite database, one file is created, and tables and stored data are saved in that file. As you add data to tables, the database file gradually grows. However, even if you delete data from a table, the database file size does not immediately become smaller. This is because the space used in the file is not removed immediately, but is kept so it can be reused when new data is added.&lt;/p&gt;
&lt;p&gt;Normally you do not need to worry about this, but if the file size is a concern, you can run the VACUUM statement to reclaim unused space and reduce the file size.&lt;/p&gt;
&lt;p&gt;Run the VACUUM statement as follows.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;VACUUM;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you run the VACUUM statement, SQLite temporarily moves the database contents to a temporary database and then moves them back. This removes free space and rewrites the data sequentially.&lt;/p&gt;
&lt;p&gt;One point to note is that VACUUM applies only to the &lt;code&gt;main&lt;/code&gt; database. Attached databases are not processed by VACUUM. Also, for tables that do not have a column set as INTEGER PRIMARY KEY, the ROWID assigned to stored data may change.&lt;/p&gt;
&lt;h2 id=&#34;practice&#34;&gt;Practice&lt;/h2&gt;
&lt;p&gt;Now try it in practice. Suppose there is a &lt;code&gt;sample.sqlite3&lt;/code&gt; file whose database file size is 16,384 bytes.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ls -al
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;total 5048
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x@ 7 kimkc  staff      238 10 19 23:20 .
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  9 kimkc  staff      306 10 17 23:49 ..
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  6 kimkc  staff      204 10 19 23:20 bak
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rw-r--r--  1 kimkc  staff    16384 10 19 23:20 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   691768 10 11 18:31 sqldiff
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff  1152260 10 11 18:32 sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   719796 10 11 18:31 sqlite3_analyzer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Connect to the database and delete one of the tables in it.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 sample.sqlite3 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; .tables
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;select    user      username
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; drop table user;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After deleting the table, check the database file size. It is still 16,384 bytes, the same as before the deletion.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ls -al
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;total 5048
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x@ 7 kimkc  staff      238 10 19 23:24 .
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  9 kimkc  staff      306 10 17 23:49 ..
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  6 kimkc  staff      204 10 19 23:20 bak
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rw-r--r--  1 kimkc  staff    16384 10 19 23:24 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   691768 10 11 18:31 sqldiff
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff  1152260 10 11 18:32 sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   719796 10 11 18:31 sqlite3_analyzer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In this way, deleting a table or data does not immediately reduce the database file size. Now connect to the database again and run the VACUUM statement.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sqlite3 sample.sqlite3 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SQLite version 3.19.3 2017-06-27 16:48:08
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enter &amp;#34;.help&amp;#34; for usage hints.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; vacuum;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sqlite&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After running the VACUUM statement, check the database file size. You can see that the file size has been reduced to 12,288 bytes.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ls -al
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;total 5040
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x@ 7 kimkc  staff      238 10 19 23:29 .
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  9 kimkc  staff      306 10 17 23:49 ..
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drwxr-xr-x  6 kimkc  staff      204 10 19 23:20 bak
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rw-r--r--  1 kimkc  staff    12288 10 19 23:29 sample.sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   691768 10 11 18:31 sqldiff
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff  1152260 10 11 18:32 sqlite3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-rwxr-xr-x@ 1 kimkc  staff   719796 10 11 18:31 sqlite3_analyzer
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kimkcui-MacBook-Pro:sqlite-tools-osx-x86-3300100 kimkc$ 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Running VACUUM reclaims unused space and reduces the file size. If the file size is a concern, run VACUUM.&lt;/p&gt;

      </description>
      
      <category>SQLite</category>
      
      <category>Database</category>
      
    </item>
    
  </channel>
</rss>
