Which is better way to find particular number from comma separate string in sqlite ?
my datatable
------------------------------------------------------------------------- |id | name | relations(This is String)| ------------------------------------------------------------------------- |1 | ABC | 1,2,3,4,5 | ------------------------------------------------------------------------- |2 | XYZ | 14,3,4,5 | -------------------------------------------------------------------------
My goal is to find row which relation contains 1 and delete this relation from string but when i use like query it returns me both rows to and rest of things i do in java
I want to find exact rows which have exact match i know it can be done using regexp i dont know how