NamedQuery to return PK value after inserting row

Can I have a named query that inserts a row and returns the primary key created?

Already supported, when called from a script. By using the optional getKey boolean argument in the function call. Effectively the same as for runUpdateQuery and runPrepUpdate when not using named queries.

1 Like