正如我惊讶地发现的那样,MySQL允许FKs使用非唯一的列。我不确定这是否也适用于其他数据库,并且总是认为FK必须是唯一的--否则,我们如何知道子行的父行--但看起来并非如此。france'), (3, 'india'), (3, 'england');
/* the cid is a FK and is not unique in the parent table but MySQL
我对PHP和MySQL很陌生。我面临一个问题:一些记录被插入到数据库中,而有些记录没有被插入。有两张桌子
$pwd= $_POST['spwd'];(Get all values in the form of post)
$a1 = mysql_query("INSERT INTO Login(email,password,a