我看过以前的线程。跟着他们,但在这里它给出了语法错误:
create table temp (name varchar(20), id varchar(128), hash varchar(128),
INDEX id, CONSTRAINT FOREIGN KEY (id) references user_record(userid), CONSTRAINT
FOREIGN KEY (hash) references post_data(hash));
错误:
#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 ' CONSTRAINT FOREIGN KEY (id)
references user_record(userid), CONSTRAINT FOREIGN ' at line 1
错误在哪里?