题目:
针对salaries表emp_no字段创建索引idx_emp_no,查询emp_no为10005, 使用强制索引。
select * from salaries indexed by idx_emp_no where emp_no=10005;
强制索引:
sqlLite: select * from 表名 indexed by 索引名 where 条件
MySQL: select * from 表名 force index (索引名) where 条件
题目:
针对salaries表emp_no字段创建索引idx_emp_no,查询emp_no为10005, 使用强制索引。
select * from salaries indexed by idx_emp_no where emp_no=10005;
强制索引:
sqlLite: select * from 表名 indexed by 索引名 where 条件
MySQL: select * from 表名 force index (索引名) where 条件