Can I increase an existing field in MySQL by one using gorm? Without using raw SQL

Viewed 493

If I use the raw SQL, it would be "UPDATE table_name SET field1 = field1 + 1 WHERE id = an_id_val";

How can I achieve the same thing with func chain calls like db.Update() or db.Save() etc.

Thanks in advance.

1 Answers
Related