I would like to get back the primary key of the last inserted row in DB2 form node.js using ibm_db package. I tried using
select id from NEW TABLE (insert into (val1, val2, ...) values ('lorem', 'ipsum', ...))
and .prepare(sql, callback) to make DB call in node.js. The result in the callback doesn't contain any property or method to get the auto-generated key. Any help is appreciated.