Subject | Get last inserted record |
---|---|
Author | Almond |
Post date | 2007-09-12T20:19:27Z |
Sorry if this is an old question.
If I only have the file name, how can I get the last inserted
record's primary key which is using generator in a trigger.
I currently read the system table to get the primary key name. Then
use max() to get the value. But I think this is not good on a
multi-user system.
Any suggestion is welcome.
Regards,
Almond Wong
If I only have the file name, how can I get the last inserted
record's primary key which is using generator in a trigger.
I currently read the system table to get the primary key name. Then
use max() to get the value. But I think this is not good on a
multi-user system.
Any suggestion is welcome.
Regards,
Almond Wong