)funcmain(){varprodUser[]model.UserNoIdsql:="SELECT * FROM `user` where id BETWEEN 888888 and 999999 AND avatar <> '' and default_avatar = 0 limit 10000 ;"iferr:=mysql.ProdReadOnlyDB.Raw(sql).Find(&prodUser).Error;err!=nil{panic(err)}for_,user:=rangeprodUser{mysql.TestDB.Create(user)}}