0
create table resources (
id bigint primary key,
value nvarchar(255),
updateId bigint,
pushUpdateId bigint
);
有許多行。 什麼指標,我需要創建用來加快查詢:
select id from resources where updateId > pushUpdateId;
當你比較同一個表中的值時,不需要索引,它總是索引掃描 – S4V1N