回答編集履歴
2
書式の改善
test
CHANGED
@@ -10,6 +10,8 @@
|
|
10
10
|
|
11
11
|
```bash
|
12
12
|
|
13
|
+
$ touch test.db
|
14
|
+
|
13
15
|
$ sqlite3 test.db
|
14
16
|
|
15
17
|
SQLite version 3.7.17 2013-05-20 00:56:22
|
@@ -18,7 +20,9 @@
|
|
18
20
|
|
19
21
|
Enter SQL statements terminated with a ";"
|
20
22
|
|
23
|
+
sqlite> create table users(name, email);
|
24
|
+
|
21
|
-
sqlite> sqlite> .tables
|
25
|
+
sqlite> sqlite> .tables
|
22
26
|
|
23
27
|
...>
|
24
28
|
|
@@ -30,6 +34,10 @@
|
|
30
34
|
|
31
35
|
Error: near "sqlite": syntax error
|
32
36
|
|
37
|
+
sqlite> .tables
|
38
|
+
|
39
|
+
users
|
40
|
+
|
33
|
-
sqlite>
|
41
|
+
sqlite> .quit
|
34
42
|
|
35
43
|
```
|
1
回答を詳細に編集
test
CHANGED
@@ -3,3 +3,33 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
でプロンプトに戻れると思います。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
手元でやってみた結果です:
|
10
|
+
|
11
|
+
```bash
|
12
|
+
|
13
|
+
$ sqlite3 test.db
|
14
|
+
|
15
|
+
SQLite version 3.7.17 2013-05-20 00:56:22
|
16
|
+
|
17
|
+
Enter ".help" for instructions
|
18
|
+
|
19
|
+
Enter SQL statements terminated with a ";"
|
20
|
+
|
21
|
+
sqlite> sqlite> .tables
|
22
|
+
|
23
|
+
...>
|
24
|
+
|
25
|
+
...> ^C
|
26
|
+
|
27
|
+
...> .exit
|
28
|
+
|
29
|
+
...> ;
|
30
|
+
|
31
|
+
Error: near "sqlite": syntax error
|
32
|
+
|
33
|
+
sqlite>
|
34
|
+
|
35
|
+
```
|