I just want to count results in a simple App Engine web page 'Data Viewer' not in a python/java class. It runs a quick GQL query. eg SELECT * FROM MyWords where bookname = 'book1' - is OK, but how to count the results?
This does not work: select count (SELECT * FROM MyWords where bookname = 'book1') - DOES NOT WORK , error is 'Invalid GQL query string' On Jul 4, 4:30 am, Robert Kluin <[email protected]> wrote: > If this is something you will be needing often, you should try to precompute > the count. You could do it at write time or periodically in the background. > It will be much more efficient. > > Robert > On Jul 1, 2011 1:01 PM, "Droid" <[email protected]> wrote:> Basic question > which I cannot solve: > > > SELECT * FROM MyWords where bookname = 'book1' > > > how can I simply count the number of returns? (I bet its easy eh?) > > > Thanks in advance if you take the time.... > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" 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?hl=en. > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
