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 (generatedKeys1.next()) { 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
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file

Can't find what you're looking for? Search the Vertica Documentation, Knowledge Base, or Blog for more information.