Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE instead of REPLACE
Message
De
28/12/2010 11:58:52
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01493981
Message ID:
01494016
Vues:
66
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform