我正在使用symfony理论或使用mysql进行实践。目前我的功能是搜索功能。输入文本并通过电子邮件、last_name或first_name列进行搜索。我需要很多信息,所以我需要左加入许多表,下面是查询:OR u2_.first_name LIKE '%abc@gmail.com%'
OR u2_.last_name LIKE '%a
大家好,我正在处理phpmyadmin数据库。每当我尝试执行查询时,它花费了超过10分钟的时间来显示结果。有没有什么方法可以加快速度。请回复。SELECT ib.*, b.brand_name, m.model_name, from in_book ib left join model m on ib.vehicle_id=m.id
所以我不得不使用表,products_used大约是600MB,products_language_description大约是5MB,但问题是这个查询永远不会结束运行...SELECT pu.products_id, count(pu.products_id) as products_count, p.products_name,WHERE pu.merchant_id='69'
AND
table_3 on (table_3.x = table_2.y)左外连接table_4 on (table_4.x = table_2.z)左外连接table_5 on (table_5.x = tabletable_2 on (table_2.x = table_1.y)左外部连接table_3 on (table_3.x = table_2.y)左外连接table_4 on (table_4.x =on (table_2.x = table_1
当前的SQL查询大约需要30秒才能完成执行,这太长了。$sql = "SELECT DISTINCT distance.mp_id from distance WHERE distance.distance < 0.2 AND$keyword."%')) ORDER BY distance.distance LIMIT 5";$results = mysql_