If you also amend the url Eric suggested with max-results=1 it will
only return one result and also still return the totalresults
parameter.

Tom Wilson
Freelance Google Base Developer and Consultant
www.tomthedeveloper.com
Google Base Tools - http://dev.tomthedeveloper.com/googlebase

On Nov 6, 2:09 am, kingfu <[EMAIL PROTECTED]> wrote:
> Thank Eric for your support.
> Other question, can our Google Base  only return the value of
> "totalResults"? because I don't care the content of records and don't
> want to request so many data .
>
> On 11月6日, 上午8时01分, "Eric (Google)" <[EMAIL PROTECTED]> wrote:
>
> > The document that Tom pointed out is where you want to look.
>
> > Example:
> > ../feeds/snippets?bq=[score>50]
>
> > The # results from a query can be found in the feed's
> > openSearch:totalResults tag:
>
> > <openSearch:totalResults>1658986</openSearch:totalResults>
>
> > Eric
>
> > On Nov 5, 7:06 am, kingfu <[EMAIL PROTECTED]> wrote:
>
> > > Thank Tom,
> > > If I want to get the total number of records set that meet some kind
> > > of condition (e.g  score>50, assuming "score" is one attribute of this
> > > record), how will I do? Notes: I just want the total number not
> > > records themselves . I only need this number and don't care the
> > > content of these records. This similar to do the following query in
> > > Database:
> > > " select count(*) from table1 where score>50".
> > > In google base, how should I do?
>
> > > On 11月5日, 下午9时31分, Tom Wilson <[EMAIL PROTECTED]> wrote:
>
> > > >http://code.google.com/apis/base/query-lang-spec.html
>
> > > > You can query the database based on your unique authorID.
>
> > > > AuthorID Search 
> > > > :http://base.google.com/support/bin/answer.py?hl=en&answer=29025
>
> > > > Tom Wilson
> > > > Freelance Google Base Developer and Consultantwww.tomthedeveloper.com
> > > > Google Base Tools -http://dev.tomthedeveloper.com/googlebase
>
> > > > On Nov 4, 3:03 pm, kingfu <[EMAIL PROTECTED]> wrote:
>
> > > > > hi Tom,
> > > > > I want to count the number of entry.
> > > > > For example, in my base database, I create 5 records . I want to  get
> > > > > the number of record : 5.
> > > > > Could you please tell me how to do it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to