Á¦°¡ »ç¿ëÇÑ ¾ÖÇø´ÀÔ´Ï´Ù.


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :ÀåÇý³² 1999³â 2¿ù 05ÀÏ 14:32:38

In Reply to: [Áú¹®]JDBC¸¦ ¾ÖÇø´À¸·Î Informix DBMS¿¡ ¿¬°áÇÏ´Â ¹æ¹ý... posted by Á¶½ÅÁ¦ on 1999³â 2¿ù 04ÀÏ 20:34:13:

Á¦°¡ »ç¿ëÇÑ ¾ÖÇø´ÀÔ´Ï´Ù.


import java.awt.*;
import java.applet.*;
import java.io.*;
import java.sql.*;
import java.net.*;


public class show extends Applet
{
static final String driver_class = "com.informix.jdbc.IfxDriver";
static final String connect_string = "jdbc:informix-sqli://128.134.11.1:2000/testDB2:
informixserver=duksung;user=h03022;password=********";
Connection conn;
int rc, cnt, j=0;
String cmd = null;
Statement sqlstmt = null;
PreparedStatement pstmt;
String s;
ResultSet r;


:
:
:



public void start(){


/***** CONNECTION PART *****/


try{
Class.forName(driver_class);
}
catch(Exception e){
}


try{
conn = DriverManager.getConnection(connect_string);
}
catch(SQLException e){
}


try{
if (temp.equals("92"))
pstmt = conn.prepareStatement("Select * from student where id_num > '92000
000' and id_num < '93000000' order by id_num");
else if (temp.equals("93"))
pstmt = conn.prepareStatement("Select * from student where id_num > '93000
000' and id_num < '94000000' order by id_num");
else if (temp.equals("94"))
pstmt = conn.prepareStatement("Select * from student where id_num > '94000
000' and id_num < '95000000' order by id_num");
}
catch(SQLException e){
}


try{
while(r.next()) {
:
s = r.getString(1);
:
}
catch(SQLException e){
}



} /* end of start */
:
:
:



´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]