Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select
Message
 
 
À
09/01/2011 08:44:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Select
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01495295
Message ID:
01495304
Vues:
82
This message has been marked as a message which has helped to the initial question of the thread.
>i try as below not match , another select not work
>all fields is chr type
>
>CLOSE ALL
>USE A
>INDEX ON COLUMN2+COLUMN4+COLUMN9 TAG TEST1
>BROWSE
>USE B
>INDEX ON COLUMN2+COLUMN4+COLUMN9 TAG TEST2
>BROW
>SELECT * FROM A WHERE COLUMN2 NOT IN (SELECT COLUMN2 FROM B) INTO CURSOR MUCUR1&& no result
>
>SELECT * FROM A WHERE COLUMN2,COLUMN6  NOT IN (SELECT COLUMN2,COLUMN6 FROM B) INTO CURSOR MUCUR1&& error 
>
>thanks

Use NOT EXISTS, e.g.
SELECT * FROM A WHERE NOT EXISTS (SELECT 1 FROM B where ;

A.Column2 = B.Column2 and A.Column6 = B.Column6) INTO CURSOR MUCUR1 NOFILTER
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform