Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting primary key value after an insert
Message
 
 
À
05/06/2006 01:37:11
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01127033
Message ID:
01127073
Vues:
15
>If my backend is Visual FoxPro, is there a way to get the primary key that was generated in the Insert command? In a particular situation, I need to issue child insertions at the same time a new record is created on the parent. The Visual FoxPro table works with an auto incremental field as the primary key. Could there be any similar use such as the scope identity to resolve that issue?

How about new VFP9 function GETAUTOINCVALUE([nDataSessionNumber | 0])
?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform