1. Download from sqlite https://sqlite.org/download.html
sqlite-dll-win64-x64-3140100.zipsqlite-tools-win32-x86-3140100.zip
2. Create Folder and unzip
.mkdir in C:\sqlite.unzip above two zip
3. launch the sqlite
cd c:\sqlitesqlite3.exe
SQLite version 3.14.1 2016-08-11 18:53:32
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
4. How to use
.open test.sqlite
CREATE TABLE users (id integer primary key autoincrement, name text not null);
insert into users (name) values('jon');
insert into users (name) values('paul');
sqlite> select * from users; 1|john 2|paul
the .open is the command for create/connection database
other .tables or .drop
Reference :
First_Installing-and-Using-SQLite-on-Windows
Appropriate Uses For SQLite
SQLite vs MySQL
沒有留言:
張貼留言