Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The weirdest bug I've seen
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00467263
Message ID:
00467390
Vues:
13
If you want to shorten this query a little, you can also use aliases as Tables names, e.g.:
select nr3.field1, nr3.field2, etc. ;
  FROM nrh10300 nr3, nrh10200 nr2, nrh14000 nr4;
>>yes, it does run if I remove any other field from the nrh14000 table or any other table. I dont think i've exceed the caracter limit.
>
>
SELECT some fields, ... nrh14000.Dir_emp ; <<--- This field is the problem
>	FROM nrh10300 , nrh10200, nrh14000 ;
>	INTO TABLE outrh\Maemp ;
>	WHERE nrh10200.Numemp = nrh10300.Numemp ;
>	AND nrh14000.Numemp = nrh10300.Numemp ;
>	AND (nrh10300.Numemp < 0 ;
>	AND nrh10200.Tarchc = 'S' ;
>	<B>AND nrh10300.Tnoemp < 'J' ;
>	AND nrh10300.Tnoemp < 'P' ;</b>
>	AND nrh10300.Tnoemp < 'B' ;
>	AND nrh10300.Numemp IN ;
>           (SELECT nrh34100.Numemp FROM nrh34100 WHERE nrh34100.Checador < 0)) ;
>	AND &cDepSec ;
>	ORDER BY nrh10300.Numemp
>
>You can remove highlighted lines w/o affecting your query because nrh10300.Tnoemp would be less than 'J' or 'P' if it's less than 'B'.
>If query runs than you certainly exceeded a limit.
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