Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usability of date syntax in SQL
Message
From
10/04/2003 08:24:51
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00775883
Message ID:
00775960
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform