Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to generate PK on SQL table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00459598
Message ID:
00459785
Vues:
31
>>
I understand there are potential problems using Identity fields in SQL to generate a PK.

1. Trying to return value with @@identity may give value for insert on another table
<<

Not if you use a stored procedure to add records. After the insert, assign the value of @@Identity to an output variable. Or, just return @@Identity.


< JVP >
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform