On Fri, Nov 14, 2014 at 09:41:27PM -0300, silvioprog wrote: > > > > Return the value most recently returned by nextval in the current > > session. This function is identical to currval, except that instead of > > taking the sequence name as an argument it fetches the value of the last > > sequence used by nextval in the current session. It is an error to call > > lastval if nextval has not yet been called in the current session. > > And PostgreSQL provides the RETURNING feature too. =)
Requires DEFAULT in the corresponding VALUES field though, I don't know if that is cross-db. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
