Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle Year() Function
Message
 
À
05/09/2003 09:33:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00826385
Message ID:
00826391
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Hi Michael,

You can use ODBC scalar function:
lcSql = "SELECT LEGALHOL.*  " + ;
        "FROM LEGALHOL  " + ;
        "WHERE {fn YEAR(LEGALHOL.HoliDate)} = " + TRANS(lnActiveYear)
MartinJ

>Hi All,
>
>I'd like to be able to do the following query in Oracle.
>
>lcSql = "SELECT LEGALHOL.* " + ;
> "FROM LEGALHOL " + ;
> "WHERE YEAR(LEGALHOL.HoliDate) = " + TRANS(lnActiveYear)
>
>lnHandle = sqlexec(gnSatHandle, lcSql, 'Holiday_Cursor')
>
>But I guess the YEAR() fuction is not valid in Oracle.
>
>TIA
>Mike
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform