I have a table in my postgres table which has data structured strangely. Here is an example of the data structure:
id | 1
name | name
data | :type: information
| :url: url
| :platform:
| android: ''
| iphone: ''
created_at | 2016-07-29 11:39:44.938359
updated_at | 2016-08-22 12:24:32.734321
How do i change data > platform > android for example?
data?text. Its a strange data structure. I don't think if I have to update a single value e.g. android I would have to output the whole data contents again including the new value ieupdate table set data = ':type: information :url: url :platform: android: 'new_value' iphone: ''I know this isnt the correct way but you get my point. Thanks.update table set field = replace(field, 'android: ''''', 'android: ''new_value'''). Does that seem okay to you?