CODE [day_07] DB / 10. JDBC - JOIN 활용 예제
SQL ERD K_EMPLOYEE TABLE DEPARTMENT TABLE empno가 1에 해당하는 ename, sal, deptno, dname, loc, tel을 조회하여 출력 SELECTe.ename, e.sal, d.deptno, d.dname, d.loc, d.tel FROMk_employee e, department d WHEREe.deptno = d.deptno and e.empno = 1; Java JDBC UML Diagram TestDAO class (main class) TestJoin 기능 1. findEmpAndDeptInfo 메서드 (input - string empno /output - Employee e) k_employee table과 department 테이블을 조인(결..
2020. 8. 14.