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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -