Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ANSI SQL Date Calculations against Oracle Rdb data
Message
 
 
À
21/07/1999 15:48:21
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:
00244314
Message ID:
00244357
Vues:
21
>I'm having trouble retrieving data from an Oracle Rdb database where a date calculation is involved (eg dDischargeDate - dDob <= 18 years).
>
>I have very little documentation about Rdb. Please note that Rdb is a step-child of Oracle so make no Oracle assumptions!
>
>Is it possible to subtract 2 dates in ANSI SQL92 and get a number of days, months, or years? What is the syntax?

When I have a date parameter for an ORacle retrieval, I have to convert the date to with dtoc() function first:

local cDate
cDate = dtoc(somedate)

My remote view SQL looks like:

...where Ora_DateField = ?cDate and ...

My SQL Passthru construction would be:

"... where Ora_DateField = '" + cDate + "' and ..."
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform