I use
select to_json(host) from host where id=3
to query data from my postgreSQL database the result is like:
{"id":3,"project_id":1,"name":"a","mac":"abc","info":"x"}
after altering the data in my application I want to update the table.
Is there a "json"-way to do this? Not doing a ordinary update like
update host set project_id=1, name='a', mac='abc',info='x' where id=1;
updatestatement.updatestatementset column = valuesyntax.UPDATEsimply doesn't support that.