有没有办法table A (id int pk, columnA int, columnB int)为以下查询建立索引:
select * from A where columnA > columnB
目前我添加columnC = columnA - columnB并将查询更改为:
select * from A where columnC > 0(在 C 列上有索引)
有没有办法table A (id int pk, columnA int, columnB int)为以下查询建立索引:
select * from A where columnA > columnB
目前我添加columnC = columnA - columnB并将查询更改为:
select * from A where columnC > 0(在 C 列上有索引)