Re: Creating a LIKE Fetch Specification
Re: Creating a LIKE Fetch Specification
- Subject: Re: Creating a LIKE Fetch Specification
- From: John Bruce <email@hidden>
- Date: Tue, 9 Aug 2005 18:42:36 +1000
when you pass in your $lastname variable to the fetch specification
you can pass in the value you want to search for + '*' - i.e. pass in
'Shr*' to get lastnames starting with 'Shr' or '*ler' for names ending
in 'ler' or '*ref*' for lastnames containing 'ref'. You can also use
'caseInsensitiveLike' as well.
Cheers,
John
On 8/9/05, Colin Shreffler <email@hidden> wrote:
> I can't quite figure out the syntax to use to create a LIKE qualifier in
> EOModeler's Fetch Specification Builder.
>
> I need something to the affect:
>
> (lastName like $lastName)
>
> But I want to have a wildcard at the end of the variable to mimic the
> query:
>
> Select * from customer_contact where lastName LIKE '$lastName%'
>
> Can anyone help?
>
> -c
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden