GQL supports > & < for strings.

Hence

myString LIKE "foo%"

becomes

myString  > 'fonzzzzzzzzzzzzz' AND myString <
'foozzzzzzzzzzzzzzzzzzzzzzzzzz'

This was close enough for my purposes but if I expected % to match non-
letter characters or non-ascii ones, I'd do some more testing.

On Oct 21, 6:34 pm, George  Moschovitis <[email protected]>
wrote:
> Hi,
>
> what is the suggested way to emulate an SQL LIKE 'prefix%' query using
> the low level Datastore API?
>
> thanks,
> George.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to