本人新手,写了一个多表关联,查询很慢很慢,求指点

qq_22061755 2015-10-26 10:51:02
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;
...全文
190 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_22061755 2015-10-26
  • 打赏
  • 举报
回复
引用 3 楼 xarrows 的回复:
用你头像足以表达我此刻的心……
此时我的内心是崩溃的
绿豆丫 2015-10-26
  • 打赏
  • 举报
回复
用你头像足以表达我此刻的心……
qq_22061755 2015-10-26
  • 打赏
  • 举报
回复
引用 1 楼 AcHerat 的回复:
好多表!
是啊 十几个表。。。
AcHerat 2015-10-26
  • 打赏
  • 举报
回复
好多表!
迷糊丶 2015-10-26
  • 打赏
  • 举报
回复
眼已花。。。。。

22,210

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧