Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Of @@identity and surrogate keys - HELP!
Message
De
10/12/1999 09:14:09
 
 
À
09/12/1999 18:36:37
Bob Lucas
The WordWare Agency
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00301334
Message ID:
00301624
Vues:
27
Bob,

I'd like to mention one possible gotcha.

@@IDENTITY is scoped to the connection, as you mentioned. If the table that you're adding the new row to (we'll call it table A) has an insert trigger that causes a new row to be placed into another table (we'll call it table b - which could be the same table if we allow recursive triggers...) and that table (b) has an IDENTITY column, @@IDENTITY will have the contain the value from table b.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform