Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回上一个 SYNCHRONIZE SQL 语句的结果。
SyncResult Connection.getSyncResult()
SyncResult 对象表示上一个 SYNCHRONIZE SQL 语句的结果。
下面的示例阐释了如何获取上一个 SYNCHRONIZE SQL 语句的结果:
PreparedStatement ps = conn.prepareStatement("SYNCHRONIZE PROFILE myprofile"); ps.execute(); ps.close(); SyncResult result = conn.getSyncResult(); display( "*** Synchronized *** sent=" + result.getSentRowCount() + ", received=" + result.getReceivedRowCount() );
此方法不返回上一次调用 Connection.synchronize 方法的结果。要获取上一次 Connection.synchronize(SyncParms) 方法调用的 SyncResult 对象,请使用 getSyncResult 方法调用传入的 SyncParms 对象。