mysql> CREATE TABLE SPJ (
SNO CHAR(4) NOT NULL ,
PNO CHAR(4) NOT NULL ,
JNO CHAR(4) NOT NULL ,
COST MONEY,
QTY INTEGER,
PRIMARY KEY(SNO,PNO,JNO),
FOREIGN KEY (SNO) REFERENCES Salers(SNO),
FOREIGN KEY (PNO) REFERENCES Products(PNO),
FOREIGN KEY (JNO) REFERENCES Projects(JNO)) ; 1064 - 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 'MONEY,
QTY INTEGER,
PRIMARY KEY(SNO,PNO,JNO),
FOREIGN KEY (SNO) ' at line 5
SNO CHAR(4) NOT NULL ,
PNO CHAR(4) NOT NULL ,
JNO CHAR(4) NOT NULL ,
COST MONEY,
QTY INTEGER,
PRIMARY KEY(SNO,PNO,JNO),
FOREIGN KEY (SNO) REFERENCES Salers(SNO),
FOREIGN KEY (PNO) REFERENCES Products(PNO),
FOREIGN KEY (JNO) REFERENCES Projects(JNO)) ; 1064 - 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 'MONEY,
QTY INTEGER,
PRIMARY KEY(SNO,PNO,JNO),
FOREIGN KEY (SNO) ' at line 5
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖