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

2025-03-22 19:12:02
推荐回答(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;