我建立视图时查询的表时emp表,emp表主键为id,视图表名为stu_v_1,建立视图的查询语句为select * from emp,emp中有三个属性,id,name,dept_id,id为主键,ename为唯一索引,dept_id 是emp与dept相关联的值,也是外键索引(fk_emp_dept_id),视图里有的属性值和emp中相同,explain分析select name from stu_v_1分析出走name唯一索引查询,select dept_id from stu_v_1 走外键索引,但当我select id from stu_v_1 时,走的不是主键索引而是外键索引,这是为什么,这样的话我如果想优化视图中的索引又该怎么优化呢?请各位大佬解解惑(QAQ)