我正在使用此代码从数据库中读取,但我得到的结果有点慢。所以我需要一些关于这个问题的帮助。
SELECT mod_part.id AS mp_id,parts.id as part_id,outlets.name as out_name, parts.part_name as part_name, parts.brand, outlets.sell, outlets.cost, outlets.qty, outlets.comp, parts.supplier, brands.name AS brand_name
FROM outlets,models,manufacturers,brands,parts,mod_part
WHERE outlets.part_id=mod_part.id
AND mod_part.part_id=parts.id
AND brands.id=mod_part.brand_id
AND mod_part.model_id=models.id
AND parts.man_id=manufacturers.id
AND (MATCH (manufacturers.name) AGAINST ('".$_GET['search']."')
OR MATCH (parts.part_name) AGAINST('".$_GET['search']."')
OR MATCH(models.name) AGAINST('".$_GET['search']."'))
GROUP BY parts.id