Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
John,
You don't say what your problem is, but I'll take a shot anyway...
1) Your SELECT (0) and following USE seem to be redundant. The table pplines should already be SELECTed automatically.
2) The SET ORDER statement should not have quotation marks around the TAG's name.
3) The TRIM() in is probably best left out.
If none of this helps, please tell us what error you are getting or what is not working as expected.
the INDEX ON expression >Hi
>
>Could someone please help. I have code to create a table on the fly as follows.
>
> CREATE TABLE "pplines.dbf" ;
> ( PPRaceID C(13), ;
> PPTypeID C(9), ;
> StrDate C(8), ;
> HrsName C(18), ;
> RaceDate D, ;
> DSLR N(4), ;
> Track C(3), ;
> TrackCond C(2) )
>
>
> INDEX ON TRIM(HrsName) + StrDate DESCENDING TAG HrsName
>
>Then I have code:
>
>SELECT(0)
>use pplines alias ppl
>SET ORDER TO TAG "HrsName"
>
>What am I doing wroung.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement