Subject | Re: [ib-support] Searching query |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-03-27T11:54:42Z |
Hi Riho-Rene,
select (name1 || name2) from table
where name1 || name2 like 'test'
BTW
If you use 'like' like this, I think it behaves as '='
Paul
> Is it somehow possible to do a search like this:That doesn't work, but this does:
>
> select (name1 || name2) as name from table
> where name like 'test'
select (name1 || name2) from table
where name1 || name2 like 'test'
BTW
If you use 'like' like this, I think it behaves as '='
> I want to search some part of name from both fields - I dont knowGreetings,
> what part of data is in first or in second field. if name1="abcdef"
> and name2="ghij", then I could find the record if I serched for 'cd'
> or 'hi'
Paul