I would like to know how I can update a value stored in an array, in crate.io
- I have a blog table -
blog_tbl
- A column, with data type array -
tags
- A
id
column - Inside the tags column I have -
["tag1","tag2","tag3"]
I would to know how I would go about changing 'tag1'
to 'tag99'
I tried
update blog_tbl set tags['tag1'] = 'tag99' where id = '1';
Also how would I add one the the end? so making it -
["tag1","tag2","tag3","tag4"]
many thanks