±Û¾´ÀÌ :PostX 1999³â 11¿ù 03ÀÏ 19:32:19
In Reply to: [Áú¹®]µ¿ÀûÀ¸·Î »ý¼ºÇÏ´Â 2Â÷¿ø ¹è¿? posted by ±èÁØ¿µ on 1999³â 11¿ù 03ÀÏ 09:50:57:
Ä÷³ÀÇ °¹¼ö¸¦ input arg·Î ¹Þ´Â ¸Þ½îµå¸¦ ÀÛ¼ºÇϼż
´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÉ °Í °°Àºµ¥¿ä...
public Vector getData(ResultSet rs, int col) {
String rowData = new String[col];
Vector vt = new Vector();
while(rs.next()) {
for(int i=0; i<col; i++) {
rowData[i] = rs.getString(i + 1);
}
vt.addElement(rowData);
}
return vt;
}
**** À§¿Í°°ÀÌ Çϸé String[]°¡ Vector¿¡ µé¾î°¡°Ô µÇ°í, ÇϳªÀÇ Vector´Â ÇÑ°³ÀÇ Row¸¦ ÀǹÌÇÏ°Ô µÇÁÒ...
±×·³ »¡¸® ÇØ°áµÇ±æ ¹Ù¶ó¸ç...