[fpc-pascal] How to insert a record and get the primary key with sqldb?

Marcos Douglas md at delfire.net
Mon Oct 24 12:40:29 CEST 2011

On Mon, Oct 24, 2011 at 7:13 AM, Vincent Snijders
<vincent.snijders at gmail.com> wrote:
> 2011/10/22 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> > 1) Use a GUID created at the time you do the Insert. This also means
> > you can do Master/Detail records with no problems at all.
> I consider this bad advice. GUID are bad primary keys, because of
> their size and the fact they are not sequential by design.

GUID isn't the key, but a way to know how get the register before insert it.

Marcos Douglas

More information about the fpc-pascal mailing list