Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
DEFAULT AUTOINCREMENT カラムまたは DEFAULT GLOBAL AUTOINCREMENT カラムに挿入された最新の値が取得されます。最新の INSERT トランザクションが、このようなカラムがないテーブルに対して行われた場合は 0 になります。
long Connection.getLastIdentity()
直前に使用した identity の値。
テーブルに複数の (GLOBAL) AUTOINCREMENT 型のカラムが含まれている場合、この値が属しているカラムは特定されません。