if(d.getEmp_job().equals("¸Å´ÏÀú")){
try{
//Áú¹®ºÎºÐ
String sql = "insert into manager(emp_id,loc_id,mng_rank) values (?,
//Áú¹®ºÎºÐ
pst = conn.prepareStatement(sql);
r = pst.executeUpdate();
}catch(Exception ex){
ex.printStackTrace();
}
}
employeeÅ×ÀÌºí¿¡ÀÖ´Â emp_job °ªÀÌ ¸Å´ÏÀú¸é manager Å×ÀÌºí¿¡ µ¥ÀÌÅ͸¦ ÀμƮ ½ÃÅ°·Á°í ÇÕ´Ï´Ù.
loc_id °ªÀº su_1 , su_2, su_3, su_4, gk_1, gk_2, gk_3, gl_4 ¶ó´Â µ¥ÀÌÅÍ°ªÀ» ·£´ýÀ¸·Î ³ÖÀ¸·Á°í ÇÕ´Ï´Ù.
mng_rank ¿¡´Â Á¤,ºÎ,¿¹ºñ °¡Àִµ¥ Á¤À̾øÀ¸¸é ºÎ°¡ Á¤ÀÌµÇ°í ºÎ°¡¾øÀ¸¸é ¿¹ºñ°¡ ºÎ·Î ÀÚµ¿À¸·Î ¹Ù²î°Ô ÇÏ·Á°í ÇÕ´Ï´Ù.
°í¼ö´Ôµé ¼ÒÁßÇѴ亯 ºÎŹµå¸®°Ú½À´Ï´Ù. | |
|
loc_id °ªÀº ·£´ý°ªÀ¸·Î ³ÖÀ¸½Å´Ù°í Çϼ˴µ¥..¹æ¹ýÀº ¿©·¯°¡Áö°¡Àִµ¥ °¢ °ªµéÀº ¹è¿¿¡ ´ãÀºµÚ
¹è¿ÀÇ Å©±â¸¸Å ³¼ö¹üÀ§ ÁöÁ¤ÇÏ¿© ¹è¿º¯¼ö¸í[³¼ö] ÇüÅ·Π»ç¿ëÇÏ½Ã¸é µÉ°Å°°°í
mng_rank ´Â ¸»±×´ë·Î Á¤,ºÎ,¿¹ºñ°¡ ÀÖ´ÂÁö select ÇÏ¿© ³Ö¾îÁÖ¸é µÉ°Å°°³×¿ä