本人新手,写了一个多表关联,查询很慢很慢,求指点
select a.cname 姓名,e.sexname 性别,c.deptname 部门名称,
a.cno 职工号,a.cardno 身份证号,b.birthday 出生日期,
a.cdt 入职时间,b.gradschool 毕业院校,b.graddt 毕业时间,
d.levelname 学历,b.special 所学专业,g.unitbase 缴费基数,
f.item003 岗薪,l.cname 职务,i.cname 执业资格,j.titlename 职称,
l.cname 岗位工种,f.item017 实发工资
from hr_epm_main a,hr_epm_base b,dept c,edulevel d,datasex e,
hr_pr_data f,hr_pr_insu_main g,hr_epm_cert h,hr_pub_certificate i,
tectitle j,hr_epm_station k,fg_ogm_position l
where a.ccode=b.ccode and a.dept=c.deptno and b.edulevel=d.edulevel
and a.sexno=e.sexno and a.cname=f.lastname and g.cno=a.cno
and a.ccode=h.ccode and h.cname=i.cno and a.jobtitle=j.tectitle
and l.cno=k.position order by l.ccode;