摘要: data := make(map[string]interface{}) data["stock"] = 0 //零值字段 data["price"] = 35 // 等价于 UPDATE `foods` SET `price` = '35', `stock` = '0' WHERE (id = ' 阅读全文
posted @ 2021-04-20 09:26 winyh 阅读(1946) 评论(0) 推荐(0) 编辑