Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax problems w/ OLEDB provider?
Message
De
27/04/2004 09:29:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/04/2004 09:21:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00898465
Message ID:
00898490
Vues:
11
>Cetin,
>
>I got it. This is what I did:
>
>
>xStartTime = "04//25/04 07:00"
>xEndTime   = "04/25/04 17:00"
>
>
>mySQL =  "SELECT * from meetings WHERE StartTime BETWEEN "+;
> "ctot('" + xStartTime + "') and ctot('" + xEndTime + "')"
>rs=oConnection.Execute(mySQL)
>? rs.GetString()
>oConnection.Close
>release oConnection			
>
>
>Neil
>Thanx ever so much once again

Neil,
I'm stumped :( ^2004/04/25 07:00 style is the format independant reliable one. Anyway I'd also try this then :
xStartTime = "{^2004/04/25 07:00}"
xEndTime   = "{^2004/04/25 17:00}"

mySQL =  "SELECT * from meetings WHERE StartTime BETWEEN "+;
 xStartTime + " and " + xEndTime

rs=oConnection.Execute(mySQL)
? rs.GetString()
oConnection.Close
release oConnection			
PS: BTW Provider was VFPOLEDB, right ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform