Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confirm or comment on SQL 'bug'
Message
De
05/12/2000 16:27:53
 
 
À
05/12/2000 16:04:21
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:
00449641
Vues:
10
>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))
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform