質問編集履歴

1

2020/08/27 06:12

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -16,6 +16,10 @@
16
16
 
17
17
  ・テーブル作成
18
18
 
19
+ ```SQL
20
+
21
+
22
+
19
23
  CREATE TABLE user(
20
24
 
21
25
  id int NOT NULL PRIMARY KEY,
@@ -28,13 +32,19 @@
28
32
 
29
33
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
30
34
 
31
-
35
+ ```
32
36
 
33
37
  ・インポート
38
+
39
+ ```SQL
34
40
 
35
41
  load data local infile "~/user.csv" into table user fields terminated by ',' optionally enclosed by '"'
36
42
 
37
43
  SET date = STR_TO_DATE(@date, 'M/D/YYYY');
44
+
45
+
46
+
47
+ ```
38
48
 
39
49
 
40
50