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

Issues changing the value of an element in an array in matlab -

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

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