通过普通的SQL:
insert into language(name) values ('value'); SELECT IDENTITY_VAL_LOCAL();有关详细信息,请参见手册:http
:
//db.apache.org/derby/docs/10.7/ref/rrefidentityvallocal.html
从Java类(通过JDBC)执行此操作时,可以在通过适当的executeUpdate()方法“请求”它们之后使用getGeneratedKeys()。

通过普通的SQL:
insert into language(name) values ('value'); SELECT IDENTITY_VAL_LOCAL();有关详细信息,请参见手册:http
:
//db.apache.org/derby/docs/10.7/ref/rrefidentityvallocal.html
从Java类(通过JDBC)执行此操作时,可以在通过适当的executeUpdate()方法“请求”它们之后使用getGeneratedKeys()。