GBase 8a集群JDBC获取加载行数 Loaded Line,忽略行数skipped Line,任务ID等
package com.gbase.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import com.gbase.jdbc.StatementImpl;
// NEED gbase-connector-java-8.3.81.53-build54.4-bin.jar
public class TestLoad {
public static void main(String[] args) throws Exception {
String URL = "jdbc:gbase://192.168.174.61:5258/testdb?user=gbase&password=gbase20110531&useOldAliasMetadataBehavior=false&failoverEnable=true&hostList=192.168.174.61&gclusterId=vmax";
// System.out.println(URL);
Class.forName("com.gbase.jdbc.Driver");
Connection con = DriverManager.getConnection(URL);
Statement stat = con.createStatement();
try {
int rtn = stat.execute