Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update - Replace
Message
From
08/03/2006 17:49:45
 
 
To
08/03/2006 13:04:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01102507
Message ID:
01102638
Views:
20
>thanks Fabio
>
>If the Visual Foxpro choice works why is it not a good choice (perhaps cos is hidden)?
>
>Regards
>Geoff
>

The fact that something works it doesn't mean anything,
when a choice is done,
is not important to understand what can be done ( this is banal ),
it needs to understand what cannot be done with the choice ( this is not banal ).

With the MSSQL way you can use the new and the current value,
with VFP you cannot:
* @field1 is the new value, field1 is the current value
* example
UPDATE myTable
SET @field1 = field1 = someValue
,   field2 = COALESCE(field1,@field1) -- field2 become current field1 if it is not null, otherwise it become the new field1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform