我需要知道哪个表充当中介以实现这些实体之间的多对多关系。在vTiger 6.5中:哪个表存储属于报价单的产品?
我知道存储产品的表格是vtiger_products
,并且保留引号的表格是vtiger_quotes
但我不知道哪个表格与两者都有关系,因此我的查询不完整。
所以......
SELECT * FROM vtiger_quotes
INNER JOIN vtiger_products INNER JOIN table_relates_both
ON vtiger_quotes.quoteid = table_relates_both.quoteid
AND vtiger_products.productid = table_relates_both.productid
WHERE vtiger_quotes.potentialid = ?
什么的table_relates_both
的真实姓名?