Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confirm or comment on SQL 'bug'
Message
De
05/12/2000 16:33:49
 
 
À
05/12/2000 16:27:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00449628
Message ID:
00449645
Vues:
14
>>VFP6 - tables in DBC
>>
>>
select * from A inner join B on like(b.field, a.field)
joins up fine if b.field is of the form "ABC???", but does NOT join if b.field is of form "ABC*". The "*" like comparison works everywhere else, why not here? bug?
>>
>>TIA,
>
>When joining, since it's comparing the whole field, it's actually in the form of "ABC* " - so it's trying to match "ABC" + however_many_characters + space(2) to the right side.
>
>Try like(alltrim(b.field)), alltrim(a.field))

Trey,

yeah - I finally figured this out (posting a question does wonders huh?) - you only need th ALLT on the b.field though ..

Thanks!
Ken B. Matson
GCom2 Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform