Information générale
Catégorie:
Codage, syntaxe et commandes
>
>I don't know what's happening here, but you might find that changing your SELECT statement to use the native ANSI SQL LIKE clause, which functions in much the same way that LIKE() operates, but with different wildcards, rewriting would look like:
>
>SELECT COUNT(*) FROM PyrlDist WHERE FUND LIKE "4%%-8002"
>
Wouldn't that be "4__-8002"? Underscore for any single char, percentage sign for zero or more characters (multiple).
>should give the same result as
>
>SELECT SUM(IIF(LIKE('4??-8002',Fund),1,0)) FROM PyrlDist
>
>You'd have to show the full query as well; if you have a GROUP BY clause, the WHERE expressions may not be getting evaluated when you think it is...like after the grouping occurs, when the instance values got 'lost in the sauce'.
>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement