Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command contains unrecognized phrase/keyword
Message
De
24/12/2006 08:08:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/12/2006 07:54:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01180003
Message ID:
01180007
Vues:
16
>hi all,
>i try this code it works for one time, i try again i get error message Command contains unrecognized phrase/keyword
>
>ldStart =ctod("01/01/2006")
>ldEnd = ctod("31/12/2006")
>
>SELECT stk_code,trn_type ;
>	SUM(IIF(MONTH(trn_date)=1 AND trn_type= 44, trn_qnty, 000000)) AS m1_t ;
>	FROM test ;
>WHERE between(trn_date,ldStart,ldEnd) ;
>GROUP BY stk_code,trn_type
>brow
>
>thanks

Don't use ctod() to get date constants. This command is ambiguous - the result may depend on SET DATE and SET CENTURY.

Instead, use one of the following:
{^2006-12-31} && unambiguous date constant
date(2006, 12, 31) && unambiguous date expression
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform