質問編集履歴
1
新しいエラーが発生した
test
CHANGED
File without changes
|
test
CHANGED
@@ -63,3 +63,47 @@
|
|
63
63
|
-> );
|
64
64
|
|
65
65
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 7
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
----------------------------------------------------------------
|
70
|
+
|
71
|
+
新しいエラーが出ました・・・・
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
mysql> #テーブル作成:画像情報テーブル
|
76
|
+
|
77
|
+
mysql> create table T_Info(
|
78
|
+
|
79
|
+
->
|
80
|
+
|
81
|
+
-> User_Level decimal(1) Primary Key,
|
82
|
+
|
83
|
+
-> Photo_ID int(20) not null auto_increment,
|
84
|
+
|
85
|
+
-> Fav_ID int(20) not null auto_increment,
|
86
|
+
|
87
|
+
-> Camera_ID int(1) not null,
|
88
|
+
|
89
|
+
-> Photo_Date Mediumblob not null,
|
90
|
+
|
91
|
+
-> Photo_Time time not null,
|
92
|
+
|
93
|
+
-> Photo_Day date not null,
|
94
|
+
|
95
|
+
->
|
96
|
+
|
97
|
+
-> foreign key(Fav_ID) references T_Fav(Fav_ID)
|
98
|
+
|
99
|
+
-> foreign key(Camera_ID) references T_Camera(Camera_ID)
|
100
|
+
|
101
|
+
->
|
102
|
+
|
103
|
+
-> );
|
104
|
+
|
105
|
+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign key(Camera_ID) references T_Camera(Camera_ID)
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
)' at line 12
|