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 <george.moschovi...@gmail.com>
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to