From 1c6146621ad25fdaa993f690695fa506c72081f5 Mon Sep 17 00:00:00 2001 From: guzeng Date: Tue, 9 Feb 2021 16:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf806d4..edc96bc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ map,err := new(Query).Db(dbname).Table(tablename).Where("id=?").Where("name=?"). 查询列表 list,err := new(Query).Db(dbname).Table(tablename).Where("id=?").Where("name=?").Value(1).Value("test").Select() -条件或 +条件"或" list,err := new(Query).Db(dbname).Table(tablename).Where("id=?").Where("name=?").WhereOr("mobile=?").Value(1).Value("test").Value("22").Select() @@ -26,4 +26,7 @@ ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?" 插入 ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?").Value("xxx").Value("test").Create() + +删除 +ret,err := new(Query).Db(dbname).Table(tablename).Where("name=?").Where("depart=?").Value("xxx").Value("test").Delete() ``` \ No newline at end of file