From be05d170be6065ef286b5c985a623628ba6e13b9 Mon Sep 17 00:00:00 2001 From: guzeng Date: Tue, 9 Feb 2021 10:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f3710d2..bf806d4 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,10 @@ list,err := new(Query).Db(dbname).Table(tablename).Where("id=?").Where("name=?") list,err := new(Query).Db(dbname).Table(tablename).Join([]string{jointable,tablename.id=jointable.cid,"LEFT"}).Where("id=?").Where("name=?").Value(1).Value("test").Select() +更新 +ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?").Value("xxx").Value("test").Update() + +插入 +ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?").Value("xxx").Value("test").Create() ``` \ No newline at end of file