问题
集群通过 jdbc 获取加载 skip 行数的解决办法。
回答
解决方法参考如下代码:
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();
}
GBase 8a集群通过 jdbc 获取加载 skip 行数的解决办法
最新推荐文章于 2024-07-25 23:12:21 发布