SQL查询语句在后台查询很快,但在WEB页面展现时要慢很多

2025年03月22日 19:12
有1个网友回答
网友(1):

建立索引会快点
CREATE INDEX aid ON A (id);
CREATE INDEX bid ON A (id);
select A.a1,A.a2,B.b1 from A ,B where A.id=B.id;