Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select in VFP9
Message
 
À
13/02/2007 09:14:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01195079
Message ID:
01195086
Vues:
16
>Hi all,
>I installed VFP9 on the windows where VFP8 was installed and was compiled my application in the new version without any errors.
>But on runtime I am getting error :
>SQL: ORDER BY clause is invalid
>
>for the next command(it works fine in VFP8):
>
> select min(tu51.f01) from tu51 into array __ttt ;
> Where f26 !=1 and tu51.f23 == g_emp_dep;
> order by tu51.f01
>
>If I change this to:
> select tu51.f01 from tu51 into array __ttt ;
> Where f26 !=1 and tu51.f23 == g_emp_dep;
> order by tu51.f01
>
>it passes without error.
>
>
>Why?

Yochanan,

Change it to:
select min(tu51.f01) from tu51 into array __ttt ;
     Where f26 !=1 and tu51.f23 == g_emp_dep;
      order by 1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform