gorm-Duplicate-entry时间:2023-03-10 05:55:42 gorm insert data to mysql tips: (Error 1062: Duplicate entry '267857' for key 'PRIMARY') reason: use twice //db.Create(model)or tx.Create(model) remove one ,then it ok ;