Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cartesian join produces 0 records
Message
 
 
À
30/01/2006 12:14:34
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01091514
Message ID:
01091974
Vues:
24
>I have two cursors, each containing one record, which I would like to join to produce a third single-record cursor using SELECT * FROM Cursor1, Cursor2 INTO Cursor3.
>The problem is that Cursor3 contains zero records, when I expected the cartesian join to produce 1 record.
>For the record, Cursor1 is created via SQLExec(), Cursor2 is created using SELECT * FROM (remoteview) INTO CURSOR Cursor2 READWRITE.
>
>Have I missed something here? Any help would be appreciated.
>
Alan,

What VFP version are you using? The following code correctly returns 1 record in VFP9SP1.
CREATE CURSOR Cursor1 (fld1 C(10) NULL, fld2 C(10) NULL)
APPEND blank
CREATE CURSOR Cursor2 (fld3 C(10) NULL, fld4 C(10) NULL)
INSERT INTO Cursor2 VALUES (Null, Null)
SELECT * FROM Cursor1, Cursor2 INTO CURSOR Cursor3
? _TALLY     && 1
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform