我正在尝试在GORM中实现“插入忽略”。我尝试过Create(),但我找不到添加Ignore的方法。我也试过Clause in Gorm DB.Clauses(clause.Insert{Modifier: "IGNORE"}).Create(&user)`.然而,我得到了一个错误,说Clauses undefined (type *"github.com/jinzhu/gorm".DB has no field or method Clauses)。我也尝试使用<
,table_name)分隔符‘UNIONALL ')作为CUSTOMQUERY从Information_Schema.tables中选择table_name,如’%定制%‘;从@query1中准备stmt;执行stmt;
在结果结束时,我们得到了缺少的查询,如SELECT * FROM * FROM * ALL SELECT * FROM *从..but UNION * ALL SELECT *从asterisk.custom_70010 UNIO