ent icon indicating copy to clipboard operation
ent copied to clipboard

[HELP] A Field which type is JSON, how to use JSON_ARRAY_APPEND() when executing Update()

Open BERZERKCOOLeST opened this issue 2 years ago • 0 comments

  • This is the field : field.JSON("info", &Info{}).Optional()
  • Target sql: Update tmp_info SET info = JSON_ARRAY_APPEND(info, '$', '1');
  • DB: mysql.

Thanks.

BERZERKCOOLeST avatar Sep 20 '22 03:09 BERZERKCOOLeST