ORACLE jdbc

428 단어 Oacle
		Class.forName( "oracle.jdbc.driver.OracleDriver" ); 
		Connection cn = DriverManager.getConnection( "jdbc:oracle:thin:@yourIp:1521:ORCL", "   ", "  " ); 
		Statement stat = cn.createStatement();
		ResultSet rs = stat.executeQuery("select 2 from dual");
		while(rs.next()){
			System.out.println(rs.getInt(1));
		}

좋은 웹페이지 즐겨찾기