public static void main(String[] args) {
		// TODO Auto-generated method stub
		String Driver = "sun.jdbc.odbc.JdbcOdbcDriver";
		String connectStr = "jdbc:odbc:test";
		try {
			Class.forName(Driver);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			Connection con = DriverManager.getConnection(connectStr, "java", "java");
			// Statement stmt = con.createStatement();
			PreparedStatement psql = con.prepareStatement("select stu_name,stu_age from stu_info where ID < ?");
			psql.setInt(1, 10);
			// psql.setString(1, "ID");
			ResultSet res = psql.executeQuery();
			while(res.next()){
				System.out.println(res.getString("stu_name") + "\t" + res.getInt("stu_age"));
			}
			psql.close();
			con.close();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}