SQLite學習筆記

2022-06-12 05:30:14 字數 1452 閱讀 5161

sqlite是乙個軟體庫,實現了自給自足的、無伺服器的、零配置的、事務性的 sql 資料庫引擎。sqlite是乙個增長最快的資料庫引擎,這是在普及方面的增長,與它的尺寸大小無關。sqlite 源**不受版權限制。

sqlite是乙個程序內的庫,實現了自給自足的、無伺服器的、零配置的、事務性的 sql 資料庫引擎。它是乙個零配置的資料庫,這意味著與其他資料庫一樣,您不需要在系統中配置。

就像其他資料庫,sqlite 引擎不是乙個獨立的程序,可以按應用程式需求進行靜態或動態連線。sqlite 直接訪問其儲存檔案。

c:\>sqlite3

sqlite version 3.7.15.2 2013-01-09 11:53:05

enter ".help" for instructions

enter sql statements terminated with a ";"

sqlite>

目前,幾乎所有版本的 linux 作業系統都附帶 sqlite。所以,只要使用下面的命令來檢查您的機器上是否已經安裝了 sqlite。

$ sqlite3

sqlite version 3.7.15.2 2013-01-09 11:53:05

enter ".help" for instructions

enter sql statements terminated with a ";"

sqlite>

如果沒有看到上面的結果,那麼就意味著沒有在 linux 機器上安裝 sqlite。因此,讓我們按照下面的步驟安裝 sqlite:

$ tar xvzf sqlite-autoconf-3071502.tar.gz

$ cd sqlite-autoconf-3071502

$ ./configure --prefix=/usr/local

$ make

$ make install

上述步驟將在 linux 機器上安裝 sqlite,您可以按照上述講解的進行驗證。

$ tar xvzf sqlite-autoconf-3071502.tar.gz

$ cd sqlite-autoconf-3071502

$ ./configure --prefix=/usr/local

$ make

$ make install

上述步驟將在 mac os x 機器上安裝 sqlite,您可以使用下列命令進行驗證:

$ sqlite3

sqlite version 3.7.15.2 2013-01-09 11:53:05

enter ".help" for instructions

enter sql statements terminated with a ";"

sqlite>

SQLite學習筆記

官方站點 從 的download頁面獲取 download.html sqlite amalgamation 3 6 22.zip是sqlite的windows下原始碼檔案 sqlite 3 6 22.zip sqlitedll 3 6 22.zip 在sqlite中,表示式 a between b...

SQLite學習筆記

官方站點 從 的download頁面獲取 download.html sqlite amalgamation 3 6 22.zip是sqlite的windows下原始碼檔案 sqlite 3 6 22.zip sqlitedll 3 6 22.zip 在sqlite中,表示式 a between b...

sqlite學習筆記

1 unique constraint failed user.userid 違反唯一性約定,意味表中已有相同的鍵值 2 rowcount 使用cursor物件執行insert,update,delete語句時,執行結果由rowcount返回影響的行數,就可以拿到執行結果。3 列對齊命令 mode ...