One of my table has a field tags
and the value of the field like {2,3,8}
tag_id | r_tags
--------|------------
1 | {2,3,8}
--------|------------
2 | {5,8}
I want to update the field without deleting the current value. For ex. If I need to add 5
for tag id 1
, then {2,3,8} should be like {2,3,8,5}
Now its works like
1. Select the current value.
2. Add 5 using php and created new string.
3. Update the row.
I just want to know is it possible only through MySql?