Answers for "gorm db delete conditional"

0

gorm db delete conditional

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%";
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language