简体   繁体   中英

How to get my desired results in Android Sqlite Search LIKE % where search key word in bangla language

  1. cursor = sqLiteDatabase.query(MyTableName, allColumns, Database.COLUMN_TO + " LIKE?", new String[]{"%বিবেচন%" }, null, null, null);

myMeaning="বিবেচন";

  1. cursor = sqLiteDatabase.query(MyTableName, allColumns, Database.COLUMN_TO + " LIKE?", new String[] {"%"+myMeaning+"%"}, null, null, null);

The first gives my desired result. I want to know why the second one can not give the desired result?

Solved, problem was in myMeaning variable which is myMeangin="বিবচন"; not "বিবেচন"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM