Subject | Re: [firebird-support] Re: Why "Like" , "=" return diffent number records? |
---|---|
Author | Helen Borrie |
Post date | 2003-10-08T13:21:12Z |
At 11:24 AM 8/10/2003 +0000, Set wrote:
As does this:
SELECT * FROM RDB$DATABASE
WHERE 'AAA' LIKE '%AAA%'
Would you test that one on 1.0.2? (though 1.0.3 would be more interesting,
since both of the versions below are superseded by 1.0.3)
> > 'AAA' like 'AAA ' is not a match, but 'AAA%' like 'AAA ' is aHere, 1.5 RC 6 on Win2K, this yields one row.
> > match.
>
>Correct, but his findings also reveals something more:
>
>SELECT * FROM RDB$DATABASE
>WHERE 'AAA ' LIKE 'AAA'
>
>does not yield any result,
>whereasSame.
>
>SELECT * FROM RDB$DATABASE
>WHERE 'AAA ' = 'AAA'
>
>returns one row.
As does this:
SELECT * FROM RDB$DATABASE
WHERE 'AAA' LIKE '%AAA%'
Would you test that one on 1.0.2? (though 1.0.3 would be more interesting,
since both of the versions below are superseded by 1.0.3)
>Though he is on 1.0.0.796 and I only tested on 1.0.2.h.
>908 (I have not installed 1.5 yet), so this may be changed in later
>releases. Or am I wrong in my understanding of how things should be?