Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT cursor question
Message
 
 
À
16/02/2001 11:22:57
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00476388
Message ID:
00476669
Vues:
25
>>>>Is there a way to convert datetime to date fields in SPT cursor?
>>>
>>>Would TTOD() do what you want?
>>>
>>>SELECT TTOD(tMyDateTime) AS dMyDate...
>>
>>You can only use functions that the back end will understand for SPT. I think CONVERT() may be what's needed here.
>
>Thanks. Low on brain power here. Is CONVERT() a T-SQL command? I usually use the ANSI CAST or EXTRACT.

PMFJI, but yest it is. It has the same basic functionality as CAST(). It's more akin to the VFP Transform() function because you can also pass a formatting parameter when converting from datetime or money to character (or one of its derivations varchar, nchar, etc.) and get different results.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform