回答編集履歴
5
変更
answer
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
テーブル名がtokyoなので他にテーブルが在るような気もします。
|
9
9
|
|
10
10
|
```sql
|
11
|
-
drop table tokyo;
|
11
|
+
drop table if exists tokyo;
|
12
12
|
create table tokyo(
|
13
13
|
item int
|
14
14
|
,flag int
|
4
変更
answer
CHANGED
@@ -4,11 +4,13 @@
|
|
4
4
|
INSERT INTO tokyo(....`condition`,....)
|
5
5
|
```
|
6
6
|
|
7
|
+
もし再定義されるのであれば下記の様なテーブルになります。
|
7
|
-
テ
|
8
|
+
テーブル名がtokyoなので他にテーブルが在るような気もします。
|
8
9
|
|
9
10
|
```sql
|
11
|
+
drop table tokyo;
|
10
12
|
create table tokyo(
|
11
|
-
item
|
13
|
+
item int
|
12
14
|
,flag int
|
13
15
|
,status int
|
14
16
|
,gazou text
|
@@ -28,4 +30,33 @@
|
|
28
30
|
,remark text
|
29
31
|
,attention text
|
30
32
|
,appurl text);
|
33
|
+
```
|
34
|
+
|
35
|
+
```ここに言語を入力
|
36
|
+
mysql> desc tokyo;
|
37
|
+
+--------------+---------+------+-----+---------+-------+
|
38
|
+
| Field | Type | Null | Key | Default | Extra |
|
39
|
+
+--------------+---------+------+-----+---------+-------+
|
40
|
+
| item | int(11) | YES | | NULL | |
|
41
|
+
| flag | int(11) | YES | | NULL | |
|
42
|
+
| status | int(11) | YES | | NULL | |
|
43
|
+
| gazou | text | YES | | NULL | |
|
44
|
+
| category | int(11) | YES | | NULL | |
|
45
|
+
| title | text | YES | | NULL | |
|
46
|
+
| performer | text | YES | | NULL | |
|
47
|
+
| performerurl | text | YES | | NULL | |
|
48
|
+
| date1 | date | YES | | NULL | |
|
49
|
+
| date2 | date | YES | | NULL | |
|
50
|
+
| place | text | YES | | NULL | |
|
51
|
+
| fee | int(11) | YES | | NULL | |
|
52
|
+
| fees | text | YES | | NULL | |
|
53
|
+
| recruit | int(11) | YES | | NULL | |
|
54
|
+
| condition | text | YES | | NULL | |
|
55
|
+
| deadlIne | date | YES | | NULL | |
|
56
|
+
| announce | date | YES | | NULL | |
|
57
|
+
| remark | text | YES | | NULL | |
|
58
|
+
| attention | text | YES | | NULL | |
|
59
|
+
| appurl | text | YES | | NULL | |
|
60
|
+
+--------------+---------+------+-----+---------+-------+
|
61
|
+
20 rows in set (0.00 sec)
|
31
62
|
```
|
3
変更
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
INSERT INTO tokyo(....`condition`,....)
|
5
5
|
```
|
6
6
|
|
7
|
-
|
7
|
+
テストのテーブル定義はこのようにしましたので、タイプ違いが有ればそこでエラーになります。
|
8
8
|
|
9
9
|
```sql
|
10
10
|
create table tokyo(
|
2
追加
answer
CHANGED
@@ -2,4 +2,30 @@
|
|
2
2
|
|
3
3
|
```
|
4
4
|
INSERT INTO tokyo(....`condition`,....)
|
5
|
+
```
|
6
|
+
|
7
|
+
ちなみにテーブルの定義はこのようにしましたのでタイプ違いが有ればそこでエラーになります。
|
8
|
+
|
9
|
+
```sql
|
10
|
+
create table tokyo(
|
11
|
+
item text
|
12
|
+
,flag int
|
13
|
+
,status int
|
14
|
+
,gazou text
|
15
|
+
,category int
|
16
|
+
,title text
|
17
|
+
,performer text
|
18
|
+
,performerurl text
|
19
|
+
,date1 date
|
20
|
+
,date2 date
|
21
|
+
,place text
|
22
|
+
,fee int
|
23
|
+
,fees text
|
24
|
+
,recruit int
|
25
|
+
,`condition` text
|
26
|
+
,deadlIne date
|
27
|
+
,announce date
|
28
|
+
,remark text
|
29
|
+
,attention text
|
30
|
+
,appurl text);
|
5
31
|
```
|
1
変更
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
mysqlではconditionが予約語らしいので``で括ってあげると良い様です。
|
1
|
+
mysqlではconditionが予約語らしいので``で括ってあげると良い様です。他項目も揃えた方がよろしいかと。
|
2
2
|
|
3
3
|
```
|
4
4
|
INSERT INTO tokyo(....`condition`,....)
|