Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to query this?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00593608
Message ID:
00593644
Vues:
26
>>What exactly goes wrong?
>>
>Sorry about that, I was getting "SQL: queries of this type are not supported".
>I think it expect a field name like nRecno rather than a function like recno() in that syntax.
>
>Jun

I dotn really know why it doesnt work, a few things to try
SELECT RECNO() AS nRecNo, * ;
   FROM TableA ;
   INTO CURSOR C_Tmp

SELECT TableA.* ;
   FROM TableA, TableB ;
   WHERE TableA.nRecNo = TableB.nRecNo
   INTO CURSOR TableC
Im not sure of the best way to pose it as an SQL Statement,
Could also do something like
SELECT * FROM TableA WHERE .F. INTO TABLE TableC
SELECT TableB
SCAN
   SELECT TableA
   GO TableB.nRecNo
   SCATTER MEMVAR
   SELECT TableC
   APPEND BLANK
   GATHER FROM MEMVAR
ENDSCAN
Havnt tested the code, so might not work :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform