Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Questions
Message
De
23/09/2005 17:06:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01052562
Message ID:
01052570
Vues:
10
>I have the following command:
>
>
>UPDATE Invoices;
>  SET InvoiceId = "ABC123";
>  WHERE RecordId IN;
>    (SELECT RecordId
>     FROM Invoices2)
>
>
>
>
>
>1) Does VFP first create a subset of Invoices2.RecordId and then use that
>to drive the update Invoices? Or is each record in Invoices2 evaulated
>for every record in Invoices?
>
>2) Is there a more efficient way to do this?
>
>Thanks

VFP first create a subset of Invoices2.RecordId and then use that to drive the update Invoices.
There are other ways but mostly xbase based. ie:
UPDATE Invoices;
  SET InvoiceId = "ABC123";
  WHERE seek(RecordId,'Invoices2','recordId')
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