Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with UPDATE
Message
De
11/09/2001 01:55:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Need help with UPDATE
Divers
Thread ID:
00554995
Message ID:
00554995
Vues:
38
Hi,

I have 2 tables (stocka & stockb). I need to update the qty field for all records in stocka with it's original vale plus the value stored in stockb.

Both table structures are identical with the pk field being barcode.

Something like this...

UPDATE stocka set stocka.qty = stocka.qty + (select qty from stockx where barcode = stocka.barcode).


Regards
Doug Johnston
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform