$query = mysql_query("SELECT company.*, factory.*
FROM company
FULL JOIN factory
ON company.n_id = factory.n_id
WHERE company.n_id = '$n_id' AND factory.n_id = '$n_id'") or die(mysql_error());
上面你看到我的查询。它给了我Unknown table 'company'
错误,但公司表存在 100%。我错过了什么?
编辑:当我使用右连接或左连接而不是完全连接时,它可以工作......但我需要完全连接。天哪,我会开枪的。