在mysql中先是建立了外键后,发现没有起到作用.仔细检查,排除了是因为两个字段类型不一样的问题.//create joe1 for test
create table joe1 (
    -> id int(10) primary key auto_increment not null,
    -> );
 insert into joe2 ("1");
//create joe2 for test
create table joe2 (
id int(10) primary key auto_increment not null,
joe_id int(10) not null ,
foreign key (joe_id) references joe1(id)
);要怎么样才能让表joe2中的joe_id 外键起作用呢?