I want to concat two columns in sqlite and perform a search on the concat column. Is this possible?
Cursor mCursor = db.rawQuery(
"SELECT user_id,firstname,lastname, \"firstname\" || \"lastname\" AS val FROM "
+ TABLE_DIRECTORY + " where val ='%" + text + "%'",
null);
using sqlite and android
Try this