Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting primary key after an insert
Message
De
07/06/2006 22:23:40
 
 
À
06/06/2006 18:16:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01127217
Message ID:
01127755
Vues:
26
>I understand GETAUTOINCVALUE(0) will return the primary key used at the insert time. But, where would it be returned.
>

By default, execution of a procedure through VFPOLEDB returns result set with one record and one field, which contains procedure's return value.

BTW, GETAUTOINCVALUE(0) doesn't return primary key used at insert time, it returns last generated AUTOINC value.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform