We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Get auto generated ID after insert using JDBC — Vertica Forum

Get auto generated ID after insert using JDBC

I'm trying to get the auto incremented id of my insert statement using JDBC. But everything i get is the following Error: (10220) Driver not capable.

This is the JDBC call:

preparedStatement = connection.prepareStatement("INSERT INTO ...",Statement.RETURN_GENERATED_KEYS);

Is there a work around to use RETURN_GENERATED_KEYS with auto incremnt?

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file