Am curious. Why did you decide to design your database this way ?
That looks like two values...
this is not ideal and it really looks like crazy technical debt 😂 either way, if your table is not crazy big you can do a select with a like '%{branch_id}%'. If it is crazy big I'd recommend you to use an index there so your select is fast.
That will not work because like %{branch_id}% is going to return all the lines that matches with any branch_id, for example like '%1%' returns any rows that contains this branch id "1","10","111","10001","21","31" etc...
Обсуждают сегодня