Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update syntax problem
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01482763
Message ID:
01482764
Views:
70
This message has been marked as the solution to the initial question of the thread.
>hi all,
>
>i have the first table ( cf crytal1115.jpg in the attachemnt )
>i have the second table temp.dbf ( cf temp.jpg in the attachment ).
>
>i want update the field nclass from crytal1115.dbf with the value included from temp.dbf
>
>this do'nt works...
>
>
> UPDATE crystal1115 SET nClass = NVL( dt1.nClass , 0 ) FROM force;
>        crystal1115 inner JOIN( SELECT tp2.iPlpId , tp2.nClass FROM Temp tp2;
>        WHERE tp2.iPlpId = crystal1115.iPlpId ) dt1	ON dt1.iPlpId = crystal1115.iPlpId
>
>
>thank in advance for the answer
>
>bernhart
UPDATE crystal1115 SET nClass = NVL(Temp.nClass , 0 );
       FROM crystal1115;
INNER JOIN Temp ON Temp.iPlpId = crystal1115.iPlpId
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform