Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Confirm or comment on SQL 'bug'
Message
From
05/12/2000 16:27:53
 
 
To
05/12/2000 16:04:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00449628
Message ID:
00449641
Views:
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))
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform