View Single Post
Old 04-21-2011, 05:55 PM   #12
knopix
Junior Member
knopix began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2011
Device: Sony 650
Thank @ all!

Quote:
Originally Posted by theducks View Post
If you have SQLite Database browser installed. the query seems to work on metadata.db to get the index#

Code:
Select books.title,comments.text  from comments,books where length(text)<25 and comments.id=books.id
I used a value of 25 for 5 words of 5 chars (inc spaces)
Thanks, i install SQLite Database browser but i can't use the result.
Because its not all of them shown (i know some books and they will not shown)

------------


Quote:
Originally Posted by chaley View Post
The function you are looking for is count. The following template
Code:
program:cmp(count(field('comments'), ' '), 15, 'true', 'true', 'false')
uses count to generate 'true' if comments contains 15 words or less, and 'false' for more than 15. A word is defined as not-spaces separated by spaces.

You could just as easily use
Code:
program:count(field('comments'), ' ')
in a column with sort/search type 'number', then use the search expression
Code:
#column:<=15
Edit: If you want the basic length, you can use strlen instead of count.
Thank you this was i searching for :-)
You does great work.

THX
wkr
Lothar

Last edited by knopix; 04-21-2011 at 06:11 PM.
knopix is offline   Reply With Quote