The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Vertica JDBC Driver prepared statement

HI All, How to get the autogenerated key of a prepared statement.. IN Mysql we used to define preparedStatement1 = dbConnection.prepareStatement(insertCustomerTableSQL, Statement.RETURN_GENERATED_KEYS); and after executing prepared statement ResultSet generatedKeys1 = preparedStatement1.getGeneratedKeys(); int key; if ( { key= generatedKeys1.getInt(1); } When i tried same with vertica JDBC driver, it says driver not capable for that statement and fails.. please let me know how do we get the latest generated key?

Leave a Comment

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