在 MySQL 中有这样一个表,记录用户的订单信息: Create Table orders( id int primary key auto_increment, title varchar(100) not null, status int not null, context text ) engine=innodb; 有一亿行数据且严格按照 id 递增,且订单 90% 的 title 都是以 xiaomi 开头的;我目前想查询订单以 `xiaomi` 开头的最近 10 条订单的状态(status) 信息,执行这样一个查询性能不佳的语句: select * from orders where title like ‘%xiaomi%’ order by id; 仅有以下措施可选,现在只能让你做其中唯一一个,你认为最有效的是:()
区块链毕设网qklbishe.com为您提供问题的解答 在 MySQL 中有这样一个表,记录用户的订单信息:
Create Table orders( id int primary key auto_increment, title varchar(100) not null, status int not null, context text ) engine=innodb;
有一亿行数据且严格按照 id 递增,且订单 90% 的 title 都是以 xiaomi 开头的;我目前想查询订单以 `xiaomi` 开头的最近 10 条订单的状态(status) 信息,执行这样一个查询性能不佳的语句:
select * from orders where title like ‘%xiaomi%’ order by id;
仅有以下措施可选,现在只能让你做其中唯一一个,你认为最有效的是:()