¹ßÇà¹øÈ£´Â ÇϳªÀÌ°í, ½ÃÀÛÀÏ, Á¾·áÀÏÀÌ ¿©·¯°³ÀÎ °ªÀ» ÀÔ·ÂÇÕ´Ï´Ù. ±×¸®°í selectÇÒ¶§ ¹ßÇà¹øÈ£·Î¸¸ Á¶È¸¸¦ ÇÏ¸é ¸ðµç ½ÃÀÛÀÏ°ú Á¾·áÀÏÀÌ ³ª¿À°Ô ÇÏ·Á ÇÕ´Ï´Ù. Áï, ¹ßÇà¹øÈ£ 1, ½ÃÀÛÀÏ 0101 Á¾·áÀÏ 0101 ¹ßÇà¹øÈ£ 1, ½ÃÀÛÀÏ 0202 Á¾·áÀÏ 0202 ¹ßÇà¹øÈ£ 1, ½ÃÀÛÀÏ 0312 Á¾·áÀÏ 0312 À̶ó¸é.. ¹ßÇà¹øÈ£·Î Á¶È¸ÈÄ ´Ù¸¥ ½ÃÀÛÀÏ Á¾·áÀÏ¿¡ ´ëÇØ select ÇÏ·Á Çϸé..
for($i=1;$i<5;$i++){ $query = "SELECT seqnum, hyufrom, hyuto FROM pb_t_24 WHERE sabun='$sabun' and seqnum = '$seq_num1' ";
my $sth = $dbh->prepare($query); $sth->execute or die "Unable to execute query : $dbh->errstr\n";
($seq_num1, $hyufrom[$i], $hyuto[$i]) = $sth->fetchrow; }
À§Ã³·³ for¹®À» µ¹·Á¼ °ªÀ» °®°í ¿À°í ½ÍÀºµ¥... ÇѶóÀθ¸ Áï, ¹ßÇà¹øÈ£ 1, ½ÃÀÛÀÏ 0101 Á¾·áÀÏ 0101 ¸¸ °®°í ¿À³×¿ä.. ¾îµð¸¦ ¼öÁ¤ÇØ¾ß ÇÒ±î¿ä..?
|