Teradata Python Module Auto-Generated Key Retrieval using REST vs ODBC

General
Highlighted
Visitor

Teradata Python Module Auto-Generated Key Retrieval using REST vs ODBC

RE: Teradata Python module and Auto-Generated Key Retrievel

https://www.info.teradata.com/HTMLPubs/DB_TTU_14_10/index.html#page/Connectivity/B035_2509_082K/2509...

 

When using the Teradata Python module and ODBC it is possible to return a result set containing the value of the identity column by setting the connection similar to the following:

 

conn = udaExec.connect(method="odbc"..., ReturnGeneratedKeys="C")

generatedId = conn.execute("INSERT INTO ...").fetchone()[0]

 

Is there equivalent functionality for the REST connection method? Or is ODBC required for Key Retrievel?