Subject | Re: [firebird-support] Why "Like" , "=" return diffent number records? |
---|---|
Author | Helen Borrie |
Post date | 2003-10-08T08:54:54Z |
At 08:12 AM 8/10/2003 +0000, you wrote:
try
select * from Tableq
where field1 like 'AAA%'
or try
select * from Tableq
where field1 starting with 'AAA'
h.
>Dear Sir;LIKE needs a wildcard:
>
>I use Firebird-1.0.0.796-Win32, and
>I got a weird stuation:
>
>When I execu SQL as
>
>select * from Tableq
>where field1 = 'AAA'
>
>the recordcount of result is 150 .(correct result)
>
>but if I use SQL as
>
>select * from Tableq
>where field1 like 'AAA'
>
>the recordcount of result only 125.
>some record seen disappeared.
try
select * from Tableq
where field1 like 'AAA%'
or try
select * from Tableq
where field1 starting with 'AAA'
h.