Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update command
Message
From
23/06/2006 16:37:47
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01131206
Message ID:
01131314
Views:
12
>>SET RELATION TO pcode1 INTO pcode1
>
>Cyclic relationship I think.
>

Actually, "Variable not found" It's a typo and should have been
SET RELATION TO pcode INTO pcode1
>>>below command not update all the records in "inward1.dbf"
>>>
>>>sele 0
>>>use pcode1
>>>sele 0
>>>use inward1
>>>update inward1 set inward1.vattype=pcode1.vattype where inward1.pcode = pcode1.pcode
>>>
>>>
>>>
>>>
>>>warm regards,
>>>mk.
>>
>>Try setting a relation between the two tables
>>
>>SELECT pcode1
>>SET ORDER TO pcode
>>SELECT inward1
>>SET RELATION TO pcode1 INTO pcode1
>>UPDATE inward1 SET inward1.vattype=pcode1.vattype WHERE inward1.pcode = pcode1.pcode
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform