Eliu Montoya writes:
> Does anyone know an easy way to insert a record (without a value for the
> primary key because it is a sequence) and at the same time obtain the value
> of primary key that was assign to this new record.
If you know the name of the sequence then you can use the function
currval() to get the last assigned value in your session.
--
Peter Eisentraut peter_e(at)gmx(dot)net