集群通过jdbc获取加载skip行数的解决办法
warning:
这篇文章距离上次修改已过1629天,其中的内容可能已经有所变动。
参考以下代码
public void testLoadData2 throws SQLException{
String insSql="";
String loadSql="";
Connection conn= this.conn;
StatementImpl stmt = (StatementImpl) conn.createStatement();
stmt.execute(loadSql);
long skippedLines = stmt.getSkippedLines();
PrepareStatement pst = conn.prepareStatement(loadSql);
pst.execute();
skippedLines =((com.gbase.jdbc.PrepareStatement) pst).getSkippedLines();
}