Suppose I have Table_A
,我希望加入到,>Table_B
, on two areas they have, school_id
, and
SELECT whatever
FROM Table_A
INNER JOIN Table_B
ON (Table_A.school_id = Table_B.school_id
AND Table_A.type_id = Table_B.type_id)
据我所知,达詹戈确实通过这些模式界定的外国/领土钥匙加入。 因此,如果要填写<代码>A.objects.filter(B__field2=“stuff”),除了在