1)SQLiteのダウンロードする
ブラウザで次のURLへアクセスして下さい。→http://www.sqlite.org/
2)解凍する
圧縮ファイルを任意のディレクトリに展開する。→c:\xampp\sqlite
3)管理者:コマンドプロンプト
C:\Users\hnaka>cd c:\xampp\sqliteを実行する
4)コマンド
c:\xampp\sqlite>sqlite3
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
Connected to a transient in-memory database.←エラーが出る
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
5)データーベース作成
c:\xampp\sqlite>sqlite3 myfriend.sqlite3
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
sqlite>
6)確認
sqlite> .database
seq name file
--- --------------- --------------------------------
0 main c:\xampp\sqlite\myfriend.sqlite3
7)デーブル作成する(デーブルを作らなとdbが作成されない事がある)
sqlite> create table personal(id, name);
8)コマンド終了
sqlite>.exit
9)再度、dbに接続(新規も既存の接続も同じ)
c:\xampp\sqlite>sqlite3 myfriend.sqlite3
sqlite>.tables
personal
sqlite>
ブラウザで次のURLへアクセスして下さい。→http://www.sqlite.org/
2)解凍する
圧縮ファイルを任意のディレクトリに展開する。→c:\xampp\sqlite
3)管理者:コマンドプロンプト
C:\Users\hnaka>cd c:\xampp\sqliteを実行する
4)コマンド
c:\xampp\sqlite>sqlite3
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
Connected to a transient in-memory database.←エラーが出る
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
5)データーベース作成
c:\xampp\sqlite>sqlite3 myfriend.sqlite3
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
sqlite>
6)確認
sqlite> .database
seq name file
--- --------------- --------------------------------
0 main c:\xampp\sqlite\myfriend.sqlite3
7)デーブル作成する(デーブルを作らなとdbが作成されない事がある)
sqlite> create table personal(id, name);
8)コマンド終了
sqlite>.exit
9)再度、dbに接続(新規も既存の接続も同じ)
c:\xampp\sqlite>sqlite3 myfriend.sqlite3
sqlite>.tables
personal
sqlite>