Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usability of date syntax in SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00775883
Message ID:
00775960
Vues:
11
>You could also try this:
>
>lcSetDate=Set([date])
>lcSetMark=Set([mark])
>SET DATE  TO  YMD
>SET MARK TO "-"
>
>lcSQL=[SELECT Numero FROM News WHERE Year={d '] + Alltrim(Dtoc(vuData)) + ['}]
>
>Set Date To (lcSetDate)
>Set Mark To (lcSetMark)
>
Thanks, but as you might have seen in another reply I this this morning, I created a function DateUniversal() which I call when I need that special syntax. This avoids me to change the SETtings which is something that I am avoiding when working in a Web framework.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform