日期:2014-05-19  浏览次数:20907 次

求一存储过程
现有基础数据表main(equno,equname,...),部门表dept(No,name),   移动表move(equno,beforeno,afterno...)
其中main表和move表通过equno关联,move表和dept表通过部门编号No实现,
说明:beforeno是移动前的部门编号,afterno是移动后的部门编号.
现要求实现:
按部门编号No可搜索该部门所有equno的信息.显示字段包括以上列举的,见下:
equno,equname,移动前部门名称,移动后部门名称(根据beforeno,afterno得到)???


------解决方案--------------------
帮顶