sql jdbc getgeneratedkeys returns column “id” not found, column type unknown

前端 未结 2 1668
感动是毒
感动是毒 2020-12-06 06:51

I want to retrieve the most recently updated value in the table using an insert query.

these are the datatypes in my sql table.

Datatype:

2条回答
  •  抹茶落季
    2020-12-06 07:46

    Maybe it's because that the sqlQuery doesn't create any new record! In this case, it will return an empty ResultSet Look at the specification of getGeneratedKeys()

提交回复
热议问题