📜  gorm db delete 条件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:32.680000             🧑  作者: Mango

代码示例1
db.Where("email LIKE ?", "%jinzhu%").Delete(Email{})// DELETE from emails where email LIKE "%jinzhu%";db.Delete(Email{}, "email LIKE ?", "%jinzhu%")// DELETE from emails where email LIKE "%jinzhu%";