I'm using SQLite, and I need to do the following:
SELECT * FROM fruit WHERE name<='banana'
This statement should return all entries whose "name" column contains text that comes alphabetically before (or is equal to) the word "banana". So it should return the row with "apple", but not the row with "pear" or "orange".
It appears that simply using the <= operator doesn't work, so is there another way?