Unless you have specifically stored None as a value in the phone field
you won't be able to do this.  You can only find values in the index.

You can't find things that have no value.

If you phone field is a string you could find >= 'a'  or ' '.
Something that
starts alphabetically before all valid values.

Rgds

T



On Nov 10, 10:59 pm, Elias <elias....@gmail.com> wrote:
> Hi,
>
> I want to find all employees from a company where the telephone number
> is NOT empty.
>
> Now I have this:
>
> db.GqlQuery("SELECT * FROM Employee WHERE company = :company AND phone
>
> > :nophone", company=company, nophone=None)
>
> But this always prints out empty results although there are items with
> telephone number.
>
> Elias

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to