In our previous episode, Felipe Monteiro de Carvalho said: > Ok, now I want to insert a record in my table and I would like to > obtain the auto-generated PrimaryKey
This is a classic problem, since SQL simply doesn't support this. So all DBs do something else, for postgresql there are sequence objects that can be queried, while other allow to return the id of the autogenerated fields. Afaik sqldb does not abstract this yet. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal