android - Space in SQLite query -


where g.value '" + lookingfor + "%' 

i have edittext filters cursor sqlite database. want take 'value' 'g' table. example 1 of 'value' 'full stop'. when input 'stop', query should find full stop.

if lookingfor "efg", nothing found. how find "abcd efgh" when "efg" typed?

ps. not want "abcd edfh" when type "cd"

try using
where g.value '%" + lookingfor + "'


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -