Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update
Message
 
À
12/01/2012 00:20:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Update
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01532776
Message ID:
01532795
Vues:
49
Try tweaking it a little bit, like this:

update test3;
set qty = (Select table1.amount;
From table1 ;
where test3.date=table1.date;
and test3.sno=table1.sno;
and table1.code=[3501001])
>Dear Experts
>
>Following codes work fine
>
>
>select test3
>scan
>    scatter memvar
>    select table1
>    locate for date=m.date and sno=m.sno and code=[3501001]
>    if found()
>        amt=amount
>        select test3
>        replace qty with amt
>    endif
>endscan
>
>
>
>But these codes do work. Please help me to find what is wrong.
>
>
>update test3;
>    set qty=table1.amount;
>    where test3.date=table1.date;
>    and test3.sno=table1.sno;
>    and table1.code=[3501001]
>
Mathias Banda

Time is longer than a rope.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform