Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve current record
Message
De
07/05/2001 11:46:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00504226
Message ID:
00504229
Vues:
14
>I am inserting a value into a table. When I insert into a table a program runs (called nextid.prg written by Eldor Gemst used in default value of table structure) that put a unique "ID" into my table. My question is, after I do an insert into a table, is there way to retrieve the values of this record I just inserted. I am trying to retrieve the "ID" value that was generated by nextid.prg of the record I just inserted? I hope this make sense.
>
>thanks in advance
>Nick Patel

Nick,
That value is field's value (that uses nextid() as default). Just query it. ie: If myPKId field has default NextId() after inserting, mytable.myPKId has that value.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform