Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Questions on SQL insert and update
Message
De
15/09/1999 08:34:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00264867
Message ID:
00264872
Vues:
23
>I wonder about the use of the sql insert and update commands.
>
>? In a form with private data session and mytable set in the dataenvironment; if I use the insert or update on mytable, will it use the occurence in dataenvironment. Will it change something in the record locking (I am using optimistic record locking) ? DO I need to perform a tableupdate() or is it done by the insert or update?
>
>? After an insert or update, am I always pointed on the record or do I have to perform a find?
>
>? Is it better to use insert/update instead of append blank/replace? Is there a performance gain or loss?
>
>Thanks
>Eric


Eric,
Insert is similar to append. Update is similar to replace. Insert also behave as an "append blank"+"replace". Behaviours differ with their optional clauses.
They would use your table and do not touch buffering. You again perform a tableupdate(). Record pointer would move.

Mostly SQL insert, update is superior to append/replace in performance. There are cases you would pick up the other but rare.

In short, start using SQL versions.
You can also check AppInsert topic at www.foxforum.com, wiki.
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