Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query too complex
Message
 
 
À
19/02/2009 22:30:54
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Divers
Thread ID:
01383004
Message ID:
01383007
Vues:
41
>Hi,
> Anyone have any idea why the following code would be throwing a "Too Complex" error.
>
>
>Delete From pattern ;
>Where pattern.patid In (Select CurRemove.patid From CurRemove) ;
>.and. xpat.patid Not In (Select CurExcept.patid From CurExcept)
>
Use DELETE FROM syntax instead, e.g.
delete Pattern from Pattern inner JOIN curRemove on Pattern.PaidID = curRemove.PatID LEFT JOIN curExcept on ;
Pattern.PatID = curExcept.PatID where curExcept.PatID IS NULL
I don't think you can use two sub-queries in DELETE syntax and also what is XPat in your query?
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform