Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE instead of REPLACE
Message
From
28/12/2010 11:58:52
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01493981
Message ID:
01494016
Views:
64
>In VFP9 you can use CAST() function to define exact type and size of the created field.
>
><snip>
>>Note the 0000.00 type of syntax. The place holder has to have the appropriate size so the column gets created properly if the first record is the 0 case.
>>Thanks to VFP 9!
>>

Hi Sergey,
I inserted in the wrong order. I meant "Thanks to VFP9" based on the ability to do UPDATE FROM x JOIN (SELECT * ) ON type of SQL code. I don't think this was possible before 9. But with regard to the structure, yes, CAST is good. I just wanted folks to know IIF(x = y, 0, x) in VFP SQL code won't always work as expected.
Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform